Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug in acpc aka universal poker's MaxGameLength calculation #1019

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

VitamintK
Copy link
Contributor

Fixes a bug in Universal Poker (ACPC).
This was noticeably causing infostate tensors to be very large. With default parameters*, the MaxGameLength was coming out as 2178, and so infostate tensors were size 4406.

After this fix, MaxGameLength is 16 and infostate tensor size is 82.

* default parameters: {'betting': 'nolimit', 'bettingAbstraction': 'fcpa', 'blind': '100 100', 'boardCards': '', 'firstPlayer': '1 1', 'handReaches': '', 'maxRaises': '', 'numBoardCards': '0 1', 'numHoleCards': 1, 'numPlayers': 2, 'numRanks': 6, 'numRounds': 2, 'numSuits': 4, 'potSize': 0, 'stack': '1200 1200'}

…h was causing very big infostate tensor sizes)
@lanctot
Copy link
Collaborator

lanctot commented Feb 23, 2023

Hi @VitamintK, thanks! The tests are failing, can you regenerate the playthroughs? scripts/regenerate_playthroughs

@VitamintK
Copy link
Contributor Author

done

Copy link
Member

@jhtschultz jhtschultz left a comment

Choose a reason for hiding this comment

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

Good catch! LGTM

@lanctot lanctot added imported This PR has been imported and awaiting internal review. Please avoid any more local changes, thanks! merged internally The code is now submitted to our internal repo and will be merged in the next github sync. labels Mar 10, 2023
@lanctot lanctot merged commit 59bfea3 into google-deepmind:master Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported This PR has been imported and awaiting internal review. Please avoid any more local changes, thanks! merged internally The code is now submitted to our internal repo and will be merged in the next github sync.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants