-
Notifications
You must be signed in to change notification settings - Fork 186
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
min_raise and max_raise = -1 when raise is still possible #72
Comments
@schreven according to prev issues I assume you have the latest updates, could you please share your branch? |
Glad to see someone else is active with this repository. |
@schreven I encountered the same issue and fixed it similar to what you did. Hope that can be merged in the official repo soon. |
I'm glad to see that this project is not dead. Good work. |
Thanks! It's just a shame that the repository owner is not active anymore. If more people still use this project, it can be worthwhile to maintain a fork |
When the players remaining stack is too low for the minimal raise (defined by the call amount + the last raise performed on the street), -1 is given by valid_actions, though if the player has more than the call amount, he should be able to raise to that value (to go all-in)
To fix this, I changed the function legal_actions in engine/action_checker.py to:
Now if the player has a stack smaller than the call amount, -1 is still returned and the player can just call, but when the player's stack is larger than the call amount, his all-in amount is returned.
The text was updated successfully, but these errors were encountered: