PyGambit#
The Gambit Python package, pygambit, is available on PyPI and can be installed with pip:
pip install pygambit
For newcomers to Gambit, we recommend reading through the PyGambit tutorials, which demonstrate the API’s key capabilities for analyzing and solving Game Theory games. These tutorials are available to be run interactively as Jupyter notebooks, see How to run PyGambit tutorials on your computer. All of the tutorials assume a basic knowledge of programming in Python.
Tutorials 1-3 assume no prior knowledge of Game Theory or the PyGambit API and provide detailed explanations of the concepts and code.
Tutorials 4-5 assume some familiarity with the PyGambit API and Game Theory terminology and concepts including:
Nash equilibria
Pure and mixed strategies
Simplex representations of available strategies
Logit quantal response equilibrium (LQRE) correspondence
You may also wish to read:
Algorithms for computing Nash equilibria#
Interfaces to algorithms for computing Nash equilibria are provided in pygambit.nash.
The table below summarizes the available PyGambit functions and the corresponding Gambit CLI commands.
CLI command |
PyGambit function |
|---|---|
