Fixed test

This commit is contained in:
2021-10-15 09:17:32 -07:00
parent ffb02bbeb6
commit e6b6310b77
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}

View File

@ -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);