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

Undo doesn't return the turn to the previous player #1

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

Undo doesn't return the turn to the previous player #1

melvic-ybanez opened this issue Jul 6, 2020 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@melvic-ybanez
Copy link
Owner

melvic-ybanez commented Jul 6, 2020

To replicate:

  1. Move a white piece.
  2. Click on a black piece
  3. Undo
  4. Try clicking the white piece again.

Expected behavior: White piece should be clickable again
Actual behavior: White piece can't be clicked.

In some cases the it can even cause weird behaviors. For instance, if the black piece you clicked is a pawn, and the white piece happens to be at the end row. If you clicked the white piece again the system will think you are moving the black pawn to the last destination, causing the promotion dialog to appear.

@melvic-ybanez melvic-ybanez added bug Something isn't working good first issue Good for newcomers labels Jul 6, 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant