pygambit.gambit.Game.insert_move#
- Game.insert_move(node: Node | str, player: Player | str, actions: list[str]) None#
Insert a move for player prior to the node node, with actions labeled according to actions. node becomes the first child of the newly-inserted node.
- Raises:
UndefinedOperationError – If actions is empty.
MismatchError – If node is a Node from a different game, or player is a Player from a different game.
ValueError – If actions contains an empty or a duplicated label.
