Test Flops
This commit is contained in:
@ -13,6 +13,7 @@ void _pokerGameActionFlopOnStart(
|
|||||||
pokergame_t *game = (pokergame_t *)action->data;
|
pokergame_t *game = (pokergame_t *)action->data;
|
||||||
pokerdiscussiondata_t discussion;
|
pokerdiscussiondata_t discussion;
|
||||||
queueaction_t *next;
|
queueaction_t *next;
|
||||||
|
uint8_t nextBetter;
|
||||||
|
|
||||||
// Prep convo
|
// Prep convo
|
||||||
discussion.poker = game;
|
discussion.poker = game;
|
||||||
@ -20,7 +21,7 @@ void _pokerGameActionFlopOnStart(
|
|||||||
// Get how many players are left in the round.
|
// Get how many players are left in the round.
|
||||||
if(pokerInRoundGetCount(game->poker.players) > 1) {// Still more than 1
|
if(pokerInRoundGetCount(game->poker.players) > 1) {// Still more than 1
|
||||||
// Add the actual flop action.
|
// Add the actual flop action.
|
||||||
// next = pokerActionNextFlopAdd(queue, &game->poker);
|
next = pokerActionNextFlopAdd(queue, &game->poker);
|
||||||
|
|
||||||
// Reset all the players
|
// Reset all the players
|
||||||
|
|
||||||
@ -30,11 +31,12 @@ void _pokerGameActionFlopOnStart(
|
|||||||
discussion.reason = POKER_DISCUSSION_REASON_FLOP;
|
discussion.reason = POKER_DISCUSSION_REASON_FLOP;
|
||||||
pokerDiscussionQueue(&discussion);
|
pokerDiscussionQueue(&discussion);
|
||||||
|
|
||||||
// //TODO: Get the next player here.
|
//TODO: Get the next player here.
|
||||||
// pokerPlayerGetRemainingBetter(&poker);
|
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(
|
// if(pokerBetGetRemainingPlayerCount(
|
||||||
// &game->poker.bet, game->poker.players
|
// &game->poker.bet, game->poker.players
|
||||||
// ) > 1) {
|
// ) > 1) {
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
return (
|
return (
|
||||||
!test_card() &&
|
test_card() == 0 &&
|
||||||
!test_poker()
|
test_poker() == 0
|
||||||
);
|
);
|
||||||
}
|
}
|
Reference in New Issue
Block a user