pygambit.gambit.MixedBehavior.__iter__#

MixedBehavior.__iter__()#

Iterate over the mixed actions specified by the mixed behavior.

A MixedBehavior is a collection of MixedActions, one per information set belonging to the player; this iterates over those, not over individual actions.

Changed in version 17.0.0: Previously iterated over individual actions and their probabilities; use MixedAction’s own iteration for that at a specific information set. Yields the History of the information set’s canonical member (its first, in pre-order depth-first order) instead of an Infoset.

Yields:
  • history (History) – The History identifying an information set belonging to the player

  • action (MixedAction) – The player’s mixed action specified at the information set