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

Computer vs Computer concurrent board state update #8

Open
melvic-ybanez opened this issue Jul 7, 2020 · 0 comments
Open

Computer vs Computer concurrent board state update #8

melvic-ybanez opened this issue Jul 7, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@melvic-ybanez
Copy link
Owner

This happens when you create a Human vs Computer or Human vs Human game while a Computer vs Computer game is still playing. After the creation of the new game, the human player (White) can’t move and a black square is selected.

One possible reason for this is that the move updates are too fast (since both are level 2) that the computer can still complete the computation before the cancelation of the current move and whole game happens. So when the new game is started, the onSucceeded code still gets executed, leading to changes in the state.

@melvic-ybanez melvic-ybanez added the bug Something isn't working label Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant