pygambit.gambit.Game.get_strategies#
- Game.get_strategies(player: str) list[str]#
Returns a snapshot of the labels of the strategies belonging to player.
This is a materialized snapshot, not a live view: it reflects the game’s state at the moment of the call, and does not change if the game is subsequently mutated.
- Parameters:
player (str) – The label of the player whose strategies to return.
- Returns:
list of str – The labels of player’s strategies, in order.
.. versionadded:: 17.0.0
- Raises:
KeyError – If no player in the game has label player.
ValueError – If player is an empty string or all whitespace.
