Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.new_tree#

classmethod Game.new_tree(players: List[str] | None = None, title: str = 'Untitled extensive game') Game#

Create a new Game consisting of a trivial game tree, with one node, which is both root and terminal.

Changed in version 16.1.0: Added the players and title parameters

Parameters:
  • players (list of str, optional) – A list of labels for the (strategic) players of the game. If players is not specified, the game initially has no players defined other than the chance player.

  • title (str, optional) – The title of the game. If no title is specified, “Untitled extensive game” is used.

Returns:

The newly-created extensive game.

Return type:

Game