pygambit.gambit.BehaviorSupportProfile.__getitem__#

BehaviorSupportProfile.__getitem__()#

Access a component of the support profile specified by index.

Parameters:

index (str or Selector) –

The part of the profile to return:

  • If index is a str, returns a BehaviorSupport over the player’s information sets. The player is determined by finding the player with that label, if any.

  • If index is a Selector (an H-built expression) resolving to a single node, returns an ActionSupport over the actions in the support at that node’s information set.

Raises:
  • TypeError – If index is not a str or a Selector.

  • ValueError – If index is a Selector resolving to a terminal node, which belongs to no information set, or to a chance event.

  • KeyError – If index is a str and no player in the game has that label.