Skip to content

Update example game playthrough with OpenSpiel of a Gambit extensive form game#787

Merged
edwardchalstrey1 merged 1 commit intomasterfrom
clarify-ops-tutorial
Feb 26, 2026
Merged

Update example game playthrough with OpenSpiel of a Gambit extensive form game#787
edwardchalstrey1 merged 1 commit intomasterfrom
clarify-ops-tutorial

Conversation

@edwardchalstrey1
Copy link
Member

@edwardchalstrey1 edwardchalstrey1 commented Feb 26, 2026

Description of the changes in this PR

This PR updates the end of the OpenSpiel tutorial notebook to clarify playing through an extensive form game generated with Gambit - it was previously a bit confusing because OpenSpiel does not handle action labels in the same way as gambit:
When loading the one card poker example, which now has 2 different actions labeled "Fold" (one for each player), from Gambit, this actually confuses the OpenSpiel game in thinking there are fewer distinct actions than there are.

The updated code doesn't run ops_one_card_poker.num_distinct_actions() - this difference may be of relevance we revisit OpenSpiel<=>Gambit importer/exporter code - I have made a note of this.

How to review this PR

I'm going to merge this without review provided the notebook renders correctly.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@edwardchalstrey1 edwardchalstrey1 merged commit 9524392 into master Feb 26, 2026
26 checks passed
@edwardchalstrey1 edwardchalstrey1 deleted the clarify-ops-tutorial branch February 26, 2026 13:49
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.

1 participant