universal poker half-pot abstraction: half-pot action is always considered legal even when it shouldn't be? #1042
Labels
bug
Something isn't working
contribution welcome
It's a nice feature! But we do not have the time to do it ourselves. Contribution welcomed!
In
universal_poker.cc
, the "half-pot bet" action (action 4) is always added, without checking to see if it's legal (and even in a terminal state). In contrast, the "pot bet" action (action 2) is added only when it is legal: this is determined by thepossibleActions_
attribute, which is set in_CalculateActionsAndNodeType
.I guess the fix here would be to add the half-pot action to
possibleActions_
, and to set it in_CalculateActionsAndNodeType
if using the FCPHA abstraction and the half-pot action should be legal.The text was updated successfully, but these errors were encountered: