Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.set_outcome#

Game.set_outcome(node: Node | str, outcome: Outcome | str | None) None#

Set outcome to be the outcome at node. If outcome is None, the outcome at node is unset.

Parameters:
  • node (Node or str) – The node to set the outcome at

  • outcome (Outcome or str or None) – The outcome to assign to the node

Raises:

MismatchError – If node is a Node from a different game, or outcome is an Outcome from a different game.