atharvapatil22 / PokerAI

0 stars 0 forks source link

Tgmiddl2 all in rework + print cleaning #51

Closed TiptonG closed 1 month ago

TiptonG commented 1 month ago

Fixes #40: Tracks players that are all_in, and skips their turns (since they can no longer do anything meaningful). Expanded phase-start check for acting players to filter out all_in players in addition to folding players. If only one acting player is left, speed the game to conclusion. I left this count out of the end of phase check, because once a player goes all in, it might prompt a response from other players to match the bet.

Also fixed some printing stuff:

brettyukino9 commented 1 month ago

tested and looks good