pygambit.gambit.MixedAction.__getitem__#
- MixedAction.__getitem__(index: Action | str) float | Rational #
Returns the probability that the action referred to by index is played.
- Parameters:
index (Action or str) –
If index is an
Action
, returns the probability the action is played.If index is a
str
, attempts to resolve the referenced object by searching for an action with that label.
- Returns:
The probability assigned to the action.
- Return type:
float or Rational
- Raises:
MismatchError – If index is an
Action
that does not belong to thisMixedAction
’s information set.