pygambit.gambit.ExtensiveGame.get_outcome#
- ExtensiveGame.get_outcome(location: Selector) str | None#
Returns the label of the outcome attached at location.
location is a Selector (an H-built expression, evaluated against this game) that must resolve to exactly one node.
Added in version 17.0.0.
- Parameters:
location (Selector) – A Selector resolving to a single node.
- Returns:
The label of the outcome attached at location, or None if it is the null outcome.
- Return type:
str or None
- Raises:
TypeError – If location is not a Selector.
ValueError – If location does not resolve to exactly one node.
