From 8139cc46145f8ca3b4cec24d23fbfee3e67b547a Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Sun, 10 Oct 2021 20:54:52 -0700 Subject: [PATCH] Test Flops --- src/game/poker/actions/flop.c | 12 +++++++----- test/tests.c | 4 ++-- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/game/poker/actions/flop.c b/src/game/poker/actions/flop.c index 726f8d9e..db964fb1 100644 --- a/src/game/poker/actions/flop.c +++ b/src/game/poker/actions/flop.c @@ -13,6 +13,7 @@ void _pokerGameActionFlopOnStart( pokergame_t *game = (pokergame_t *)action->data; pokerdiscussiondata_t discussion; queueaction_t *next; + uint8_t nextBetter; // Prep convo discussion.poker = game; @@ -20,7 +21,7 @@ void _pokerGameActionFlopOnStart( // Get how many players are left in the round. if(pokerInRoundGetCount(game->poker.players) > 1) {// Still more than 1 // Add the actual flop action. - // next = pokerActionNextFlopAdd(queue, &game->poker); + next = pokerActionNextFlopAdd(queue, &game->poker); // Reset all the players @@ -30,11 +31,12 @@ void _pokerGameActionFlopOnStart( discussion.reason = POKER_DISCUSSION_REASON_FLOP; pokerDiscussionQueue(&discussion); - // //TODO: Get the next player here. - // pokerPlayerGetRemainingBetter(&poker); + //TODO: Get the next player here. + nextBetter = pokerPlayerGetRemainingBetter(&game->poker); + + // Now, get the count of players left to bet. If "everyone is all in" then + // this will be 0 and no actual betting needs to happen. - // // Now, get the count of players left to bet. If "everyone is all in" then - // // this will be 0 and no actual betting needs to happen. // if(pokerBetGetRemainingPlayerCount( // &game->poker.bet, game->poker.players // ) > 1) { diff --git a/test/tests.c b/test/tests.c index 1cc2fccf..c8f099af 100644 --- a/test/tests.c +++ b/test/tests.c @@ -10,7 +10,7 @@ int main() { return ( - !test_card() && - !test_poker() + test_card() == 0 && + test_poker() == 0 ); } \ No newline at end of file