-
Notifications
You must be signed in to change notification settings - Fork 24
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
The way raise is defined is troublesome #39
Comments
Yeah so that's actually by design. That is, I do hear you though that it is way more intuitive to have the alternative. I'll add this in as a to do |
A work around for now is that you can have a player raise the amount |
Looks to be a bug with split pots. Those have been notoriously troublesome... What version are you on? |
The latest version |
It would be also be helpful if you can export the history of the hand with |
Looks like that when someone went all-in. It split the pot when it wasn't suppose to, probably has to do with the logic of when we split the pot here: texasholdem/texasholdem/game/game.py Lines 432 to 437 in 97e05f3
|
Ok I can see about getting a fix on this. But getting that history file if you can will be most helpful in verifying it. |
The Invalid move error is fixed after I changed to I added this in the Pot class
and the output looks like:
I also added this player_amounts_without_remove that records player's bets in the entire game without resetting it. |
Here are some of the history files you've requested... |
Sorry which of those files display abnormal behavior? |
I don't think there're any more😂, just sometimes empty pots are added |
Got it haha... if you find a case... just attach it here. Hopefully there's nothing huge then that's blocking you. As a very yucky solution at each step you can run
|
|
Ok found a bunch actually, will continue this discussion in the other issue |
|
When I raise 5 chips, the amount should be this pot's raised value + 5, not just 5 chips. It's causing many errors and I printed out player info's and pots.raised
You can see in the image, player's actions do not map correctly to pot-raised amounts (when player 3 raised 1298 chips, one value in the list below should update to 1298 as the raised amounts) and I have no idea where to locate this bug.
Thanks for the help in advance!
The text was updated successfully, but these errors were encountered: