pygambit.gambit.Game.add_outcome#
- Game.add_outcome(payoffs: List | None = None, label: str = '') Outcome #
Add a new outcome to the game.
- Parameters:
payoffs (list, optional) – The payoffs of the outcome to each player.
label (str, default "") – The label for the outcome
- Raises:
ValueError – If payoffs is specified but is not the same length as the number of players in the game.
- Returns:
A reference to the newly-created outcome.
- Return type: