atharvapatil22 / PokerAI

0 stars 0 forks source link

Change Phase End Condition #47

Closed TiptonG closed 1 month ago

TiptonG commented 1 month ago

Apparently I got the Phase Change logic wrong. Any player who bets resets the other players' "passiveness", but not their own. Each player besides the betting player gets a chance to respond to the bet. But you cannot bet, have everyone call to you, and then bet again, if you wanted to bet more you should have done it originally.

Plan to fix: *_bet and all_in actions set all other self.board.playersPassing values to false, and the current player's passing value to true. Ensure that players who are folding automatically get their passing value set to true and their turn skipped (also All_In players as implemented in the #40 issue). Calling and checking will remain passive actions. Essentially, any action a player takes makes them passive, but "raise" actions they take force other players to respond!