Working on winning logic.
This commit is contained in:
@ -34,7 +34,7 @@ void _pokerGameActionBetOnUpdate(
|
||||
isHuman = game->poker.bet.better == POKER_PLAYER_HUMAN_INDEX;
|
||||
|
||||
// Handle as an AI
|
||||
if(isHuman && false) {
|
||||
if(isHuman) {
|
||||
turn = game->ui.betTurn;
|
||||
turnMade = game->ui.betTurnMade;
|
||||
} else {
|
||||
|
@ -23,6 +23,9 @@ void _pokerGameActionWinnerOnStart(
|
||||
uint8_t winner = game->poker.winner.winners[i];
|
||||
printf("Winner %u\n", winner);
|
||||
}
|
||||
|
||||
pokerGameActionRoundAdd(game);
|
||||
queueNext(queue);
|
||||
}
|
||||
|
||||
queueaction_t * pokerGameActionWinnerAdd(pokergame_t *game) {
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "../../../poker/winner.h"
|
||||
#include "../pokerdiscussion.h"
|
||||
#include "action.h"
|
||||
#include "round.h"
|
||||
|
||||
/** Callback to fire when the winner starts */
|
||||
void _pokerGameActionWinnerOnStart(
|
||||
|
@ -96,8 +96,6 @@ void pokerDiscussionGet(
|
||||
}
|
||||
|
||||
void pokerDiscussionQueue(pokerdiscussiondata_t *data) {
|
||||
return;
|
||||
|
||||
pokerdiscussion_t discussion;
|
||||
uint8_t i, player;
|
||||
|
||||
|
Reference in New Issue
Block a user