SirRender00 / texasholdem

A pure python package for Texas Hold 'Em poker
https://github.com/SirRender00/texasholdem/
MIT License
75 stars 19 forks source link

ValueError: Betting round is over at this point, can only CALL or FOLD. #186

Closed LucasColas closed 1 year ago

LucasColas commented 1 year ago

Hello, Sometimes I get this error : ValueError: Betting round is over at this point, can only CALL or FOLD. I would like to know when it happens. Because in no-limit hold'em, players have the option to raise at any point in the hand (as long as they have chips remaining).

SirRender00 commented 1 year ago

Hey! Can you provide a hand history for when you get this?

You might be running into WSOP Rule 96 https://github.com/SirRender00/texasholdem/issues/25

SirRender00 commented 1 year ago

You can also check if the raise option is available due to this rule via the game.raise_option: bool attribute