# Install gambit with Homebrew, apk, Nix

Software tools for game theory. Version 16.6.0 via Homebrew; verified 2026-07-08.

## Install

```sh
sudo av install brew:gambit
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gambit
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gambit
```

  Evidence: Alpine Linux edge package indexes: gambit from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#gambit
```

  Evidence: nixpkgs package indexes: gambit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## Package facts

- **Package key:** brew:gambit
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gambit>
- **Version:** 16.6.0
- **Source summary:** Software tools for game theory
- **Homepage:** <https://www.gambit-project.org/>
- **Repository:** <https://github.com/gambitproject/gambit>
- **Upstream docs:** <https://gambitproject.readthedocs.io/en/stable>
- **License:** GPL-2.0-or-later AND Zlib
- **Source archive:** <https://github.com/gambitproject/gambit/archive/refs/tags/v16.6.0.tar.gz>
- **Last updated:** 2026-07-08T03:44:56Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gambit (cli)
- gambit-convert (cli)
- gambit-enummixed (cli)
- gambit-enumpoly (cli)
- gambit-enumpure (cli)
- gambit-gnm (cli)
- gambit-ipa (cli)
- gambit-lcp (cli)
- gambit-liap (cli)
- gambit-logit (cli)
- gambit-lp (cli)
- gambit-simpdiv (cli)
- gambit (alias)
- gambit-convert (alias)
- gambit-enummixed (alias)
- gambit-enumpoly (alias)
- gambit-enumpure (alias)
- gambit-gnm (alias)
- gambit-ipa (alias)
- gambit-lcp (alias)
- gambit-liap (alias)
- gambit-logit (alias)
- gambit-lp (alias)
- gambit-simpdiv (alias)

## Dependencies

- wxwidgets

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 16.6.0
- Package-manager updated: 2026-07-08
- Local data: ok
- Upstream repository: https://github.com/gambitproject/gambit
- Upstream latest detected: v16.6.0 (current)
## Project history and usage

Gambit is an open-source package for computation in game theory, covering construction, analysis, storage, and equilibrium computation for finite non-cooperative games in extensive or strategic form.

### Project history

The official history traces Gambit to game-analysis programs written by Richard McKelvey at Caltech in the mid-1980s. It began in BASIC, moved to C and the Borland Graphics Interface around 1990, and was publicly distributed as version 0.13 in 1991 and 1992.

Between 1994 and 1996, Gambit became a fuller package under National Science Foundation support, with Andrew McLennan involved and Theodore Turocy joining as principal developer. The project was rewritten in C++, became cross-platform, and used wxWidgets for its graphical interface.

Later development added and reorganized interfaces around command-line tools, a graphical application, and PyGambit, the Python API. The project records Google Summer of Code participation in 2011 and 2012, support for Game Theory Explorer, Action Graph Games contributions, and current core support from the Alan Turing Institute since 2023.

### Adoption history

Gambit has an academic adoption path: it is cited as a package for game-theoretic computation, appears in game-theory research, and exposes standard formats for storing and communicating games with external tools.

The current documentation presents three user-facing surfaces: a Python API for programmatic use, a GUI for constructing and inspecting games, and command-line tools for scripting and integration. The input package facts show it packaged in Homebrew, Alpine, and Nix.

### How it is used

Users model games in extensive or strategic form, compute pure and mixed-strategy Nash equilibria, fit quantal-response and related models, and exchange games through Gambit's file formats. Command-line programs such as gambit-enumpure, gambit-enummixed, gambit-lcp, gambit-logit, and gambit-convert support scripted workflows.

### Why package nerds care

Gambit matters to package maintainers because it combines a scientific C++ codebase, a GUI, a Python API, and many small CLI tools under one package name. It is the sort of domain package where executable naming, Python bindings, and long-lived academic release history all matter.

### Timeline

- Mid-1980s: Origins in game-analysis programs at Caltech.
- 1991: Public distribution as version 0.13 began.
- 1994: Version 0.94 released.
- 1999: Version 0.96 released.
- 2002: Version 0.97 released; Turocy became project lead.
- 2011: GitHub repository created and Google Summer of Code participation began.
- 2023: Rahul Savani joined as co-lead and Alan Turing Institute core support began.
- 2026: Version 16.6.0 released on GitHub.

### Related projects

- PyGambit provides the Python API.
- Game Theory Explorer is a related browser-based game construction and solving tool supported by Gambit development.
- GTDraw is linked from the official project site as a related tool.
- wxWidgets was used for Gambit's cross-platform graphical interface.

### Sources

- <https://gambitproject.readthedocs.io/en/stable/>
- <https://gambitproject.readthedocs.io/en/stable/tools.html>
- <https://github.com/gambitproject/gambit/releases>
- <https://www.gambit-project.org/>
- <https://www.gambit-project.org/history/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gambit
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - gambit: normalized package name match | nixpkgs package indexes: gambit from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - gambit - 4.9.5-r1: normalized package name match | Alpine Linux edge package indexes: gambit from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable and efficient implementation of the Scheme language | https://gambitscheme.org/
- apk - gambit-dev - 4.9.5-r1: normalized package name match | Alpine Linux edge package indexes: gambit-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable and efficient implementation of the Scheme language (development files) | https://gambitscheme.org/
- apk - gambit-doc - 4.9.5-r1: normalized package name match | Alpine Linux edge package indexes: gambit-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Portable and efficient implementation of the Scheme language (documentation) | https://gambitscheme.org/


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Scientific computing packages](https://www.automicvault.com/pkg/scientific-computing-tools/) - Matched scientific computing metadata.
- [wxwidgets](https://www.automicvault.com/pkg/brew/wxwidgets/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [calc](https://www.automicvault.com/pkg/brew/calc/) - Shares av.db curated category or tags: cli, mathematics, science.
- [cddlib](https://www.automicvault.com/pkg/brew/cddlib/) - Shares av.db curated category or tags: cli, mathematics, science.
- [fplll](https://www.automicvault.com/pkg/brew/fplll/) - Shares av.db curated category or tags: cli, mathematics, science.
- [fricas](https://www.automicvault.com/pkg/brew/fricas/) - Shares av.db curated category or tags: cli, mathematics, science.
- [maxima](https://www.automicvault.com/pkg/brew/maxima/) - Shares av.db curated category or tags: cli, mathematics, science.
- [pari](https://www.automicvault.com/pkg/brew/pari/) - Shares av.db curated category or tags: cli, mathematics, science.
- [ppl](https://www.automicvault.com/pkg/brew/ppl/) - Shares av.db curated category or tags: cli, mathematics, science.
- [primecount](https://www.automicvault.com/pkg/brew/primecount/) - Shares av.db curated category or tags: cli, mathematics, science.
- [wxmaxima](https://www.automicvault.com/pkg/brew/wxmaxima/) - Local package facts share a topical domain. Shared terms: cli, mathematics, science, wxwidgets.
- [singular](https://www.automicvault.com/pkg/brew/singular/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, mathematics, python, science.

## Combined YAML source

View the package source record on GitHub. [combined/gambit.yml](https://github.com/automic-vault/db/blob/main/combined/gambit.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
