pygambit.gambit.Game.set_infoset#
- Game.set_infoset(node: Node | str, infoset: Infoset | str) None#
Place node in the information set infoset.
node must be a decision node with the same action labels as infoset in the same order If node already belongs to infoset, this is a no-op.
Changed in version 17.0.0: Two new requirements are now enforced:
node must have the same actions as infoset: the same labels in the same order (previously only the number of actions was checked);
node must be a personal decision node. Setting the information set of a terminal node or a chance node now raises.
- Parameters:
- Raises:
MismatchError – If node or infoset is from a different game.
KeyError – If node or infoset is a string matching no node or information set in the game.
TypeError – If node or infoset is not an accepted type.
UndefinedOperationError – If node is a terminal node or a chance node.
ValueError – If node’s actions do not match infoset’s, with the same labels in the same order.
