Skip to content

Fix bug: When game is over, all moves should be invalid#20

Open
RohanM wants to merge 1 commit into
huangeddie:masterfrom
RohanM:fix-moves-valid-after-game-over
Open

Fix bug: When game is over, all moves should be invalid#20
RohanM wants to merge 1 commit into
huangeddie:masterfrom
RohanM:fix-moves-valid-after-game-over

Conversation

@RohanM
Copy link
Copy Markdown

@RohanM RohanM commented May 3, 2022

Currently the gogame.invalid_moves() function will return all zeros when the game is over, which indicates that any move is valid. We'd like to indicate the opposite, so return all ones instead.

@RohanM RohanM marked this pull request as ready for review May 3, 2022 07:06
@RohanM RohanM mentioned this pull request May 3, 2022
6 tasks
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