Fixed test
This commit is contained in:
@ -59,7 +59,7 @@ void pokerResetBettingRound(poker_t *poker) {
|
||||
|
||||
// Now reset to the first player that needs to bet.
|
||||
if(poker->playerCount > 0) {
|
||||
poker->better = (poker->playerBigBlind + 1) % poker->playerCount;
|
||||
poker->better = poker->playerBigBlind;
|
||||
} else {
|
||||
poker->better = 0x00;
|
||||
}
|
||||
|
@ -75,7 +75,6 @@ void test_pokerResetBettingRound_should_ResetTheBettingRound(void) {
|
||||
pokerPlayerAdd(&poker);
|
||||
pokerPlayerAdd(&poker);
|
||||
|
||||
|
||||
for(i = 0; i < poker.playerCount; i++) {
|
||||
pokerPlayerChipsAdd(poker.players + i, 1000);
|
||||
};
|
||||
@ -93,6 +92,7 @@ void test_pokerResetBettingRound_should_ResetTheBettingRound(void) {
|
||||
void test_pokerTakeBlinds_should_TakeTheBlinds(void) {
|
||||
poker_t poker;
|
||||
pokerInit(&poker);
|
||||
pokerSetBlinds(&poker, 100, 200);
|
||||
|
||||
pokerPlayerChipsAdd(poker.players + pokerPlayerAdd(&poker), 1000);
|
||||
pokerPlayerChipsAdd(poker.players + pokerPlayerAdd(&poker), 1000);
|
||||
|
Reference in New Issue
Block a user