Closed alcapotine closed 3 months ago
Thanks for using my library!
In PokerKit, you need to create a new state to simulate a new hand.
In your case, when you create a new state to serve as the next hand, you would have to pass in the final stacks of the players from the last hand (state.stacks
).
Since you are playing Texas hold'em, you would have to handle the rotation of the player button which would mean rotating the stack list. You would have to filter out zero stack value player as well (who busted). There is no easy function for this, sorry.
Hi! First and foremost thanks a lot for this library, it is very usefull. I am trying to setup a project but I am facing many questions and can't find the answer within the documentation. I am trying to automate a no limit hold'em 6 players tournament, finish until only one player is left with chips.
My questions:
1b. If not how to start a new round after chips have been pulled?
I get the error "Currently, nobody can be dealt hole cards" when trying to deal new cards. Even though a winner has already been selected and chips pulled, I would expect the automation to re-shuffle the deck and initiate all parameters for a new round.
1c. If not, how is it possible to cycle all the players position clockwise after each round?
1d. If not, When a player reach 0 chips, is there a way to remove the player and keep the game without this player?
Many thanks for your answer, apologies if the question could have been solved otherwise.