pygambit.gambit.MixedStrategy.__iter__#
- MixedStrategy.__iter__()#
Iterate over the probabilities assigned to strategies by the mixed strategy.
Changed in version 17.0.0: Yields the strategy’s label instead of the
Strategyobject.- Yields:
label (str) – The label of a strategy for the player
probability (float or Rational) – The probability the mixed strategy assigns to the strategy being played
