pygambit.gambit.Strategy.action#
- Strategy.action(infoset: Infoset | str) Action | None#
Get the action prescribed by a strategy for a given information set.
Added in version 16.4.0.
- Parameters:
infoset – The information set for which to find the prescribed action. Can be an Infoset object or its string label.
- Returns:
The prescribed action or None if the strategy is not defined for this information set, that is, the information set is unreachable under this strategy.
- Return type:
Action or None
- Raises:
UndefinedOperationError – If the game is not an extensive-form (tree) game.
ValueError – If the information set belongs to a different player than the strategy.
