Skip to main content
Chadwick

Software tools for game theory.

Ctrl+K

Gambit 16.3.1 documentation

  • What is Gambit?
  • PyGambit
  • CLI
  • GUI
  • Sample games
    • Developer docs
    • Game representation formats
    • Bibliography
    • Detailed table of contents
    • GitHub
    • Releases
    • Older releases
    • Cite Gambit
  • GitHub
  • What is Gambit?
  • PyGambit
  • CLI
  • GUI
  • Sample games
  • Developer docs
  • Game representation formats
  • Bibliography
  • Detailed table of contents
  • GitHub
  • Releases
  • Older releases
  • Cite Gambit
  • GitHub

Section Navigation

  • User guide
  • API documentation
    • pygambit.gambit.Game
    • pygambit.gambit.Player
    • pygambit.gambit.Outcome
    • pygambit.gambit.Node
    • pygambit.gambit.Infoset
    • pygambit.gambit.Action
    • pygambit.gambit.Strategy
    • pygambit.gambit.read_gbt
    • pygambit.gambit.read_efg
    • pygambit.gambit.read_nfg
    • pygambit.gambit.read_agg
    • pygambit.gambit.Game.new_tree
    • pygambit.gambit.Game.new_table
    • pygambit.gambit.Game.from_arrays
    • pygambit.gambit.Game.to_arrays
    • pygambit.gambit.Game.from_dict
    • pygambit.gambit.Game.to_efg
    • pygambit.gambit.Game.to_nfg
    • pygambit.gambit.Game.to_html
    • pygambit.gambit.Game.to_latex
    • pygambit.gambit.Game.append_move
    • pygambit.gambit.Game.append_infoset
    • pygambit.gambit.Game.insert_move
    • pygambit.gambit.Game.insert_infoset
    • pygambit.gambit.Game.copy_tree
    • pygambit.gambit.Game.move_tree
    • pygambit.gambit.Game.delete_parent
    • pygambit.gambit.Game.delete_tree
    • pygambit.gambit.Game.set_player
    • pygambit.gambit.Game.set_infoset
    • pygambit.gambit.Game.leave_infoset
    • pygambit.gambit.Game.set_chance_probs
    • pygambit.gambit.Game.reveal
    • pygambit.gambit.Game.sort_infosets
    • pygambit.gambit.Game.add_player
    • pygambit.gambit.Game.add_outcome
    • pygambit.gambit.Game.delete_outcome
    • pygambit.gambit.Game.set_outcome
    • pygambit.gambit.Game.add_strategy
    • pygambit.gambit.Game.delete_strategy
    • pygambit.gambit.Game.title
    • pygambit.gambit.Game.comment
    • pygambit.gambit.Game.is_const_sum
    • pygambit.gambit.Game.is_tree
    • pygambit.gambit.Game.is_perfect_recall
    • pygambit.gambit.Game.players
    • pygambit.gambit.Game.outcomes
    • pygambit.gambit.Game.min_payoff
    • pygambit.gambit.Game.max_payoff
    • pygambit.gambit.Game.strategies
    • pygambit.gambit.Game.root
    • pygambit.gambit.Game.actions
    • pygambit.gambit.Game.infosets
    • pygambit.gambit.Game.nodes
    • pygambit.gambit.Game.contingencies
    • pygambit.gambit.Player.label
    • pygambit.gambit.Player.number
    • pygambit.gambit.Player.game
    • pygambit.gambit.Player.strategies
    • pygambit.gambit.Player.infosets
    • pygambit.gambit.Player.actions
    • pygambit.gambit.Player.is_chance
    • pygambit.gambit.Player.min_payoff
    • pygambit.gambit.Player.max_payoff
    • pygambit.gambit.Player.strategies
    • pygambit.gambit.Outcome.label
    • pygambit.gambit.Outcome.number
    • pygambit.gambit.Outcome.game
    • pygambit.gambit.Node.label
    • pygambit.gambit.Node.game
    • pygambit.gambit.Node.outcome
    • pygambit.gambit.Node.children
    • pygambit.gambit.Node.parent
    • pygambit.gambit.Node.is_subgame_root
    • pygambit.gambit.Node.is_terminal
    • pygambit.gambit.Node.prior_action
    • pygambit.gambit.Node.prior_sibling
    • pygambit.gambit.Node.next_sibling
    • pygambit.gambit.Node.infoset
    • pygambit.gambit.Node.player
    • pygambit.gambit.Node.is_successor_of
    • pygambit.gambit.Node.plays
    • pygambit.gambit.Game.mixed_strategy_profile
    • pygambit.gambit.Game.random_strategy_profile
    • pygambit.gambit.Game.mixed_behavior_profile
    • pygambit.gambit.Game.random_behavior_profile
    • pygambit.gambit.Game.strategy_support_profile
    • pygambit.gambit.MixedStrategyProfile
    • pygambit.gambit.MixedStrategyProfile.game
    • pygambit.gambit.MixedStrategyProfile.mixed_strategies
    • pygambit.gambit.MixedStrategyProfile.__iter__
    • pygambit.gambit.MixedStrategyProfile.__getitem__
    • pygambit.gambit.MixedStrategyProfile.__setitem__
    • pygambit.gambit.MixedStrategyProfile.payoff
    • pygambit.gambit.MixedStrategyProfile.strategy_value
    • pygambit.gambit.MixedStrategyProfile.strategy_regret
    • pygambit.gambit.MixedStrategyProfile.player_regret
    • pygambit.gambit.MixedStrategyProfile.strategy_value_deriv
    • pygambit.gambit.MixedStrategyProfile.max_regret
    • pygambit.gambit.MixedStrategyProfile.liap_value
    • pygambit.gambit.MixedStrategyProfile.as_behavior
    • pygambit.gambit.MixedStrategyProfile.normalize
    • pygambit.gambit.MixedStrategyProfile.copy
    • pygambit.gambit.MixedStrategy
    • pygambit.gambit.MixedStrategy.__iter__
    • pygambit.gambit.MixedStrategy.__getitem__
    • pygambit.gambit.MixedStrategy.__setitem__
    • pygambit.gambit.MixedBehaviorProfile
    • pygambit.gambit.MixedBehaviorProfile.game
    • pygambit.gambit.MixedBehaviorProfile.mixed_behaviors
    • pygambit.gambit.MixedBehaviorProfile.mixed_actions
    • pygambit.gambit.MixedBehaviorProfile.__iter__
    • pygambit.gambit.MixedBehaviorProfile.__getitem__
    • pygambit.gambit.MixedBehaviorProfile.__setitem__
    • pygambit.gambit.MixedBehaviorProfile.payoff
    • pygambit.gambit.MixedBehaviorProfile.action_value
    • pygambit.gambit.MixedBehaviorProfile.action_regret
    • pygambit.gambit.MixedBehaviorProfile.infoset_value
    • pygambit.gambit.MixedBehaviorProfile.infoset_regret
    • pygambit.gambit.MixedBehaviorProfile.node_value
    • pygambit.gambit.MixedBehaviorProfile.realiz_prob
    • pygambit.gambit.MixedBehaviorProfile.infoset_prob
    • pygambit.gambit.MixedBehaviorProfile.belief
    • pygambit.gambit.MixedBehaviorProfile.is_defined_at
    • pygambit.gambit.MixedBehaviorProfile.max_regret
    • pygambit.gambit.MixedBehaviorProfile.liap_value
    • pygambit.gambit.MixedBehaviorProfile.as_strategy
    • pygambit.gambit.MixedBehaviorProfile.normalize
    • pygambit.gambit.MixedBehaviorProfile.copy
    • pygambit.gambit.MixedBehavior
    • pygambit.gambit.MixedBehavior.mixed_actions
    • pygambit.gambit.MixedBehavior.__iter__
    • pygambit.gambit.MixedBehavior.__getitem__
    • pygambit.gambit.MixedBehavior.__setitem__
    • pygambit.gambit.MixedAction
    • pygambit.gambit.MixedAction.__iter__
    • pygambit.gambit.MixedAction.__getitem__
    • pygambit.gambit.MixedAction.__setitem__
    • pygambit.supports.undominated_strategies_solve
    • pygambit.nash.NashComputationResult
    • pygambit.nash.enumpure_solve
    • pygambit.nash.enummixed_solve
    • pygambit.nash.enumpoly_solve
    • pygambit.nash.lp_solve
    • pygambit.nash.lcp_solve
    • pygambit.nash.liap_solve
    • pygambit.nash.logit_solve
    • pygambit.nash.simpdiv_solve
    • pygambit.nash.ipa_solve
    • pygambit.nash.gnm_solve
    • pygambit.qre.logit_solve_branch
    • pygambit.qre.logit_solve_lambda
    • pygambit.qre.logit_estimate
    • pygambit.qre.LogitQREMixedStrategyFitResult
    • pygambit.qre.LogitQREMixedBehaviorFitResult
  • PyGambit

PyGambit#

Gambit provides a Python package, pygambit, which is available on PyPI.

Installation#

To install the package, use the following command:

pip install pygambit
  • User guide
    • Example: One-shot trust game with binary actions
    • Example: A one-card poker game with private information
    • Building a strategic game
    • Representation of numerical data of a game
    • Reading a game from a file
    • Lifetime of a game object and its elements
    • Computing Nash equilibria
    • Acceptance criteria for Nash equilibria
    • Generating starting points for algorithms
    • Quantal response equilibrium
    • Using external programs to compute Nash equilbria
  • API documentation
    • Representation of games
    • Representation of strategic behavior
    • Computation on supports
    • Computation of Nash equilibria
    • Computation of quantal response equilibria

previous

What is Gambit?

next

User guide

On this page
  • Installation

This Page

  • Show Source

© Copyright 1994-2025, The Gambit Project.

Created using Sphinx 8.2.3.

Built with the PyData Sphinx Theme 0.16.1.