pygambit.gambit.MixedBehaviorProfile.__getitem__#
- MixedBehaviorProfile.__getitem__()#
Access a component of the mixed behavior profile specified by index.
- Parameters:
index (str or Selector) –
The part of the profile to return:
If index is a
str, returns aMixedBehaviorover 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 aMixedActionover the actions at that node’s information set.
- Raises:
TypeError – If index is not a
stror aSelector.ValueError – If index is a
Selectorresolving to a terminal node, which belongs to no information set, or to a chance event.KeyError – If index is a
strand no player in the game has that label.
