Skip to content

Move samples to catalog where appropriate, create discussions for other ideas#811

Merged
edwardchalstrey1 merged 8 commits intomasterfrom
dev_samples
Mar 19, 2026
Merged

Move samples to catalog where appropriate, create discussions for other ideas#811
edwardchalstrey1 merged 8 commits intomasterfrom
dev_samples

Conversation

@tturocy
Copy link
Copy Markdown
Member

@tturocy tturocy commented Mar 18, 2026

This migrates some of the standalone "samples" from the old docs into the catalog where appropriate, adding citation details and descriptions.

Other "samples" are examples from a paper where there are other interesting things that should be done alongside (capturing other examples, possibly doing a tutorial/example notebook). These have been noted as ideas for discussion.

A few others are lower priority so we don't do anything with them at the moment. For example the nim game actually doesn't even really map onto the Van Huyck experiment. And the loopback example for QRE should be part of a larger set of examples (and this parameterisation isn't even the best one for illustrating what's going on).

@tturocy tturocy linked an issue Mar 18, 2026 that may be closed by this pull request
@tturocy tturocy added this to the gambit-16.6.0 milestone Mar 18, 2026
@edwardchalstrey1 edwardchalstrey1 mentioned this pull request Mar 19, 2026
* initial test refactor

* deduplicate game slugs

* Update error handling in test_catalog_load_all_game_slugs

* load 2smp game from contrib instead of catalog

* Update Makefile.am

* fix reiley game

* correct ext
@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Copy Markdown
Member

@edwardchalstrey1 edwardchalstrey1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me - @tturocy I had to change the reiley2008 game as the payoffs weren't correct, but that actually led me down a useful test-improvement rabbit hole, this PR now improves the catalog tests and will error if you try to add a game to the catalog that can't be loaded by read_efg or read_nfg

@edwardchalstrey1
Copy link
Copy Markdown
Member

Also @tturocy - do you think it's worth me updating the "stripped down poker" tutorial to after constructing the game from code say "this is the same as the catalog game 'reiley2008/fig1'"?

@edwardchalstrey1 edwardchalstrey1 merged commit 0eee1b6 into master Mar 19, 2026
26 checks passed
@edwardchalstrey1 edwardchalstrey1 deleted the dev_samples branch March 19, 2026 13:06
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.

[Catalog] Add games from sample page to catalog

2 participants