pygambit.gambit.ExtensiveGame.get_behavior#

ExtensiveGame.get_behavior(player: str, strategy: str) → StrategyBehavior#

Return the mapping from information sets to actions prescribed by a strategy.

Added in version 17.0.0.

Parameters:
  • player (str) – The label of the player whose strategy to view.

  • strategy (str) – The label of the strategy to view.

Return type:

StrategyBehavior

Raises:
  • UndefinedOperationError – If the game does not have a tree representation.

  • KeyError – If no player has the label player, or player has no strategy with the label strategy.