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

[QUESTION] Is it possible to allow a player to move twice? #294

Open
CharlieBrownCharacter opened this issue Dec 24, 2023 · 0 comments
Open

Comments

@CharlieBrownCharacter
Copy link

CharlieBrownCharacter commented Dec 24, 2023

First of all, thank you very much for developing such a great library.

I have the following use case:

  1. Player A plays e5
  2. Player B plays e5
  3. Player A presses a button to withdraw the last play by Player B
  4. Player A takes his turn

Basically we have allowed Player A to play twice in a row.

I have tried using undoLastMove on step 3 but then what happens is that the next move on the board is still Player B when in fact it should be Player A.

Is this possible with this library? If yes, would you guys mind providing a small example or methods I can call to achieve this?

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

No branches or pull requests

1 participant