pygambit.gambit.Strategy.label#

Strategy.label#

Get or set the text label associated with the strategy.

Changed in version 16.7.0: A strategy label must be nonempty and unique among the player’s strategies; an empty or duplicate label now raises ValueError. A label may contain only printable ASCII characters and spaces, not begin/end with a space, nor have two consecutive spaces.