texas-holdem-poker-ai
texas-holdem-poker-ai copied to clipboard
Not all players play in the pre-flop when one player raise
In the pre_flop, when a player raise, the big blind player don't need to call to go to the next round.
you have
// After a raise, every active players after the raiser must play if (bettingDecision.equals(BettingDecision.RAISE)) { toPlay = gameHand.getPlayersCount() - 1; }
I think that if you change with that // After a raise, every active players after the raiser must play if (bettingDecision.equals(BettingDecision.RAISE)) { toPlay = gameHand.getPlayersCount() ; }
everything will be ok, because you have a toPlay--; at the end.
Not only in the pre_flop. This happens always