Skip to content

Add initial version of games catalog#753

Open
edwardchalstrey1 wants to merge 59 commits intomasterfrom
ehancement/731/take2
Open

Add initial version of games catalog#753
edwardchalstrey1 wants to merge 59 commits intomasterfrom
ehancement/731/take2

Conversation

@edwardchalstrey1
Copy link
Member

@edwardchalstrey1 edwardchalstrey1 commented Feb 3, 2026

Issues closed by this PR

Description of the changes in this PR

This PR adds infrastructure and documentation for a first version of the Catalog of games:

  • Catalog games can be created by adding NFG/EFG files to catalog dir
  • pygambit can load games from outside the pygambit code (in catalog dir)
  • Moves several game files from contrib/games to catalog to test catalog functionality
  • Updates tutorials to load from catalog
  • Adds a page to the docs with all Catalog games, linked to on the docs navbar which just has the game slug and title for now
  • Adds a script called src/pygambit/update_catalog.py that you run after adding a new EFG/NFG (usage described in developer docs)
  • Also contains change from Fix printing normal form games #757

How to review this PR

@edwardchalstrey1
Copy link
Member Author

edwardchalstrey1 commented Feb 10, 2026

Ed's Todo:

  • Move src/pygambit/update_catalog.py to a more appropriate location for a utils script e.g. build_support/catalog
  • Add ability for game slug to be a file within a folder e.g. myerson/fig_4_2

@edwardchalstrey1
Copy link
Member Author

edwardchalstrey1 commented Feb 13, 2026

@tturocy @rahulsavani this PR can be merged once the game slugs (filenames) and titles for the 4 examples have been updated, i.e. inside the EFG/NFG files in /catalog.

Note that I used the game titles in a few places in test_catalog.py, so will might need to update there too if any are changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create initial games catalog from contrib/games

2 participants