-
Notifications
You must be signed in to change notification settings - Fork 0
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
Premoves #36
Comments
Hi, thanks for checking out the library! Pre-moves are a good application, but I do not have plans to add it to the core library as that involves state management, and this chessboard is not intended to maintain complex internal state. However, I think it should be possible to implement pre-moves in your application using this library, assuming you manage state yourself in your application. Here's a potential way to do it: (Assuming Player A = white, Player B = black)
Now, you have to handle two different events (you can use a combination of
Let me know if the above makes sense! Closing issue. |
Hello, this is good chess board, but I can not use premoves, for example I play with white pieces and I do a move and my pieces to disable it is good, But when my opponent thinking I want to do a premove but I do not how can I do it, so it is very important tool because in blitzkrieg game when play in 2 or 3 minutes this tool is very important.
The text was updated successfully, but these errors were encountered: