Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedBehaviorProfile.__setitem__#

MixedBehaviorProfile.__setitem__()#

Sets a probability, mixed agent strategy, or mixed behavior strategy to value.

Parameters:

index (Player, Infoset, Action, or str) –

The part of the profile to return:

  • If index is a Player, sets the MixedBehavior over the player’s infosets

  • If index is an Infoset, sets the MixedAction over the infoset’s actions

  • If index is an Action, sets the probability the action is played

  • If index is a str, attempts to resolve the referenced object by first searching for a player with that label, then for an infoset with that label, and finally for an action with that label.

Raises:

MismatchError – If player is a Player from a different game, infoset is an Infoset from a different game, or action is an Action from a different game.`