Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.insert_move#

Game.insert_move(node: Node | str, player: Player | str, actions: int) None#

Insert a move for player prior to the node node, with actions actions. node becomes the first child of the newly-inserted node.

Raises:
  • UndefinedOperationError – If 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.