pygambit.gambit.Game.add_strategy#
- Game.add_strategy(player: Player | str, label: str | None = None) Strategy #
Add a new strategy to the set of strategies for player.
- Parameters:
player (Player or str) – The player to create the new strategy for
label (str, optional) – The label to assign to the new strategy
- Returns:
The newly-created strategy
- Return type:
- Raises:
MismatchError – If player is a Player from a different game.
UndefinedOperationError – If called on a game which has an extensive representation.