pygambit.gambit.StrategySupportProfile.__setitem__#

StrategySupportProfile.__setitem__()#

Sets the support for the player with label player to exactly the given strategies.

Added in version 17.0.0.

Parameters:
  • player (str) – The label of the player whose support is to be set.

  • strategies (Iterable[str]) – The labels of the strategies which should be in the support for the player. Every one of the player’s other strategies is removed from the support.

Raises:
  • KeyError – If no player in the game has the label player.

  • ValueError – If any entry of strategies is not one of the player’s strategy labels, or if strategies is empty.