Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Node#

class pygambit.gambit.Node#

A node in a Game.

Methods

is_successor_of(node)

Returns whether this node is a successor of node.

Attributes

children

The set of children of this node.

game

Gets the Game to which the node belongs.

infoset

The information set to which this node belongs.

is_subgame_root

Returns whether the node is the root of a proper subgame.

is_terminal

Returns whether this is a terminal node of the game.

label

The text label associated with the node.

next_sibling

The node which is immediately after this one in its parent's children.

outcome

Returns the outcome attached to the node.

parent

The parent of this node.

player

The player who makes the decision at this node.

prior_action

The action which leads to this node.

prior_sibling

The node which is immediately before this one in its parent's children.