Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedBehaviorProfile.node_value#

MixedBehaviorProfile.node_value(player: Player | str, node: Node | str) float | Rational#

Returns the expected payoff to player conditional on play reaching node, 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.

  • node (Node or str) – The node to get the payoff at. If a string is passed, the node is determined by finding the node with that label, if any.

Raises:
  • MismatchError – If player is a Player from a different game or node is a Node from a different game.

  • KeyError – If player is a string and no player in the game has that label, or node is a string and no node in the game has that label.

  • ValueError – If player resolves to the chance player