pygambit.gambit.MixedStrategy.__getitem__#
- MixedStrategy.__getitem__()#
Returns the probability that the strategy with label strategy is played.
- Parameters:
strategy (str) – The label of the strategy to look up.
- Returns:
The probability assigned to the strategy.
- Return type:
float or Rational
- Raises:
KeyError – If no strategy for this player has the label strategy.
