Split the bet tests out.
This commit is contained in:
@ -50,9 +50,9 @@ void _pokerGameActionFlopOnStart(
|
||||
|
||||
// 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) > 0x01) {
|
||||
if(pokerBetGetRemainingBetterCount(&game->poker) > 0x01) {
|
||||
// Begin betting.
|
||||
game->poker.better = pokerBetGetRemainingPlayer(&game->poker);
|
||||
game->poker.better = pokerBetGetNextPlayer(&game->poker);
|
||||
pokerGameActionLookAdd(game, game->poker.better);
|
||||
pokerGameActionBetAdd(game);
|
||||
} else {
|
||||
|
@ -20,7 +20,7 @@ void _pokerGameActionRoundOnEnd(queue_t *queue,queueaction_t *action,uint8_t i){
|
||||
// Start the round
|
||||
pokerResetRound(&game->poker);
|
||||
pokerDealerNew(&game->poker);
|
||||
pokerTakeBlinds(&game->poker, game->poker.blindSmall, game->poker.blindBig);
|
||||
pokerTakeBlinds(&game->poker);
|
||||
|
||||
// Speak
|
||||
data.poker = game;
|
||||
@ -33,7 +33,7 @@ void _pokerGameActionRoundOnEnd(queue_t *queue,queueaction_t *action,uint8_t i){
|
||||
|
||||
// Deal
|
||||
cardShuffle(game->poker.deck, CARD_DECK_SIZE);
|
||||
pokerPlayerDealAll(&game->poker, POKER_PLAYER_HAND_SIZE_MAX);
|
||||
pokerDealAllPlayers(&game->poker, POKER_PLAYER_HAND_SIZE_MAX);
|
||||
|
||||
// Speak
|
||||
data.reason = POKER_DISCUSSION_REASON_DEAL;
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "../../../libs.h"
|
||||
#include "../../../poker/player.h"
|
||||
#include "../../../poker/dealer.h"
|
||||
#include "../../../poker/poker.h"
|
||||
#include "action.h"
|
||||
#include "../pokerdiscussion.h"
|
||||
#include "bet.h"
|
||||
|
Reference in New Issue
Block a user