Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not all players play in the pre-flop when one player raise #14

Open
maiklez opened this issue Jul 21, 2015 · 1 comment
Open

Not all players play in the pre-flop when one player raise #14

maiklez opened this issue Jul 21, 2015 · 1 comment

Comments

@maiklez
Copy link

maiklez commented Jul 21, 2015

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.

@maiklez
Copy link
Author

maiklez commented Jul 21, 2015

Not only in the pre_flop. This happens always

maiklez added a commit to maiklez/texas-holdem-poker-ai that referenced this issue Jul 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant