Updating the Games Catalog#
This page covers the process for contributing to and updating Gambit’s Games Catalog. To do so, you will need to have the gambit GitHub repo cloned and be able to submit pull request via GitHub; you may wish to first review the contributor guidelines.
You can add games to the catalog saved in a valid representation format. Currently supported representations are:
.efg for extensive form games
.nfg for normal form games
Add new games#
Create the game file:
Use either pygambit, the Gambit CLI or GUI to create and save game in a valid representation format.
Add the game file:
Create a new branch in the
gambitrepo. Add your new game file(s) inside thecatalogdir and commit them.Update the catalog:
Use the
update.pyscript to update Gambit’s documentation & build files.python build_support/catalog/update.py --build
Note
Run this script in a Python environment where
pygambititself is also installed.Warning
Running the script with the
--buildflag updates Makefile.am. If you moved games that were previously in contrib/games you’ll need to also manually remove those files from EXTRA_DIST.Submit a pull request to GitHub with all changes.
Warning
Make sure you commit all changed files e.g. run
git add --allbefore committing and pushing.
