Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.append_infoset#

Game.append_infoset(nodes: Node | str | Iterable[Node | str], infoset: Infoset | str) None#

Add a move in information set infoset at terminal nodes.

Raises:
  • UndefinedOperationError – If any element in nodes is not a terminal node.

  • MismatchError – If an element in nodes is a Node from a different game, or infoset is an Infoset from a different game.

  • ValueError – If nodes has duplicated elements, or is empty.