-
Notifications
You must be signed in to change notification settings - Fork 976
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
Fixed bug in Ultimate Tic Tac Toe termination conditions #1307
base: master
Are you sure you want to change the base?
Conversation
… end when any small board was terminal instead of when *all* small boards are terminal
Thanks! |
Regarding the failing tests: seems like a new issue in Dark Hex is causing a compilation problem that wasn't happening before. I am on vacation at the moment but will take a look when I get back next week. Once we fix it you can just pull the changes from master and retrigger the tests. |
Ok, this fix has been merged into master. Can you pull changes from master and push the merge commit to trigger the tests again? |
@armatthews just checking to see if you can do this? Would love to give you proper credit for this fix, but I can't import it until the tests are passing. |
@lanctot It is happening because in the basic_tests.cc the game_length is increased by one when an action is performed. I was able to analyze the error, however I am not fit in c++, so I do not feel comfortable to attempt any fix for this. |
Good find! Can you just change this line:
to add a |
Oh @PatrickChrestin I just noticed you are not the original contributor of this fix. @armatthews just quickly checking if you can finish this -- otherwise, I can make the change on our side and submit independently. |
yeah, sorry, I was interested in the fix for the problem.
the MR #1314 adapts the max game length of uttt to the max game length of a sub board times the number of sub boards. |
Fixed bug in Ultimate Tic Tac Toe implementation that caused games to end when any small board was terminal instead of when all small boards are terminal