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

Promotion throws illegal move when testing with setBoardState #22

Open
dealingwith opened this issue Aug 27, 2023 · 1 comment
Open
Assignees

Comments

@dealingwith
Copy link
Member

dealingwith commented Aug 27, 2023

#15 introduced a helper JS method:

setBoardState("rnbqk3/ppppp2P/8/8/8/8/PPPPPPP1/RNBQKBNR w KQq - 0 1")

Moving the piece after using it:

JS: Source: h7 Target: h8 index.js:28:13
piece:  wP index.js:29:13
JS: open promotion modal index.js:19:13
JS: returned engine move: illegal move
@dealingwith
Copy link
Member Author

Proposed solution: have a setBoardState function in the Rust chess engine and call that from the JS

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

2 participants