Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedBehaviorProfile.payoff#

MixedBehaviorProfile.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.

  • ValueError – If player resolves to the chance player