This commit is contained in:
2021-09-27 22:48:28 -07:00
parent 25e683b512
commit fa54383d6f
5 changed files with 14 additions and 11 deletions

View File

@ -138,13 +138,13 @@ pokerturn_t pokerTurnGet(poker_t *poker, uint8_t playerIndex) {
// Did we actually bet?
if(amount > 0) {
printf("I plan on betting %i chips\n", amount);
printf("AI is betting %i chips, bluff: %i\n", amount, isBluff);
// Let's not get caught in a raising loop with AI.
if(player->timesRaised >= POKER_TURN_MAX_RAISES) {
amount = callBet;
}
amount = mathMax(amount, callBet);
turn = pokerTurnRaise(poker, playerIndex, amount);
turn.confidence = confidence;