Closed LucasColas closed 6 months ago
Hi, thanks for creating an issue.
You should not call _pop_actor_index
. It is a hidden helper method that should not be called by outsiders. Just use the actor_index
property. It gives you who is in turn to fold, check, call, complete, bet, or raise.
With that aside, you can make your code simpler by using the following query methods to check if an action can be performed: can_deal_board
, can_deal_hole
, can_burn_card
, can_complete_bet_or_raise_to
.
To see who is going to be dealt hole cards, you can access hole_dealee_index
.
Closed due to inactivity.
Hello, I'm working to create a poker solver. I'm using CFR. And I need to create a game tree. I've been trying to use your library to create a Pokerkit. However I'm still having some issues. Particularly when a node reaches the river. For instance a player bets and the other player calls, sometimes I don't have
state.street is None
equals to True. I also have another problem. I didn't find a method to know when I have to callburn_card()
anddeal_board
, so I did a Try Except. Could you give a code to do a random poker tree ?Here's the code I did that implements DeepCFR and creates a game tree :
The main problem I have is at the river :
the issue is created from
player_to_act = new_game._pop_actor_index()
.