Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.append_move#

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

Add a move for player at the terminal node node. node becomes part of a new information set, with actions labeled according to actions.

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

  • MismatchError – If node is a Node from a different game, or player is a Player from a different game.