Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.append_move#

Game.append_move(nodes: Node | str | Iterable[Node | str], player: Player | str, actions: List[str]) None#

Add a move for player at terminal nodes. All elements of nodes become part of a new information set, with actions labeled according to actions.

Raises:
  • UndefinedOperationError – If nodes are not all terminal, or actions is not a positive number.

  • MismatchError – If an element from nodes is a Node from a different game, or player is a Player from a different game.

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