pygambit.gambit.Game.leave_infoset#
- Game.leave_infoset(node: Node | str)#
Remove node from its information set, placing it in a new singleton.
If node is the only member of its information set, this is a no-op and the information set (with its label) is unchanged. Otherwise node is placed in a new, unlabeled singleton information set belonging to the same player; the label, if any, stays with the members left in the rump.
Changed in version 17.0.0.
- Parameters:
node (Node or str) – The node to move to a new singleton information set.
- Raises:
MismatchError – If node is a Node from a different game.
KeyError – If node is a string and no node in the game has that label.
TypeError – If node is neither a Node nor a str.
ValueError – If node is an empty string or all whitespace.
