pygambit.gambit.Node.player#

Node.player#

the one who makes the decision, if this is a personal node, or the chance player, if this is an event.

Returns a lazy, node-anchored view resolved on each access, so the value reflects the current state of the game even if the game is mutated after this property is read. For a terminal node, which has no player, the view is falsy and equals None. At a chance node the view resolves to the chance player (is_chance is True).

Changed in version 16.7.0: Now returns a lazily-evaluated, node-anchored view rather than capturing the player at the time of access.

Type:

The player associated with this node