pygambit.gambit.MixedAction.__iter__#

MixedAction.__iter__()#

Iterate over the probabilities assigned to actions by the mixed action.

Changed in version 17.0.0: Yields the action’s label instead of the Action object.

Yields:
  • label (str) – The label of an action at the information set

  • probability (float or Rational) – The probability the mixed action assigns to the action being played