pygambit.gambit.MixedStrategyProfile.payoff#
- MixedStrategyProfile.payoff(player: Player | str) float | Rational #
Returns the expected payoff to a player if all players play according to the profile.
- Parameters:
player (Player or str) – The player to get the payoff for. If a string is passed, the player is determined by finding the player with that label, if any.
- Raises:
MismatchError – If player is a Player from a different game.
KeyError – If player is a string and no player in the game has that label.