pygambit.gambit.StrategicGame.make_outcome_null#

StrategicGame.make_outcome_null(location: Mapping | Iterable[Mapping]) → None#

Reset the outcome at location to the null outcome.

location is a pure-strategy contingency – a complete mapping from the game’s players’ labels to strategy labels – or an iterable of such contingencies.

Any outcome all of whose references are among location is removed from the game.

Added in version 17.0.0.

Parameters:

location (contingency, or iterable of contingencies) – The contingencies to reset to the null outcome. Nonempty; each contingency may be referenced only once.

Raises:
  • TypeError – If location is not a contingency or an iterable of contingencies.

  • ValueError – If location is empty or contains a repeat, or if a contingency does not specify exactly one strategy for each player.