-
Notifications
You must be signed in to change notification settings - Fork 901
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
Chess960 - Wrong Move - Possible Castling #441
Comments
chess.js has no Chess960 support right? Although someone has submitted support to the pull requests, so you could try that? Are you trying to filter out Chess960 games or support them?
If that doesn't work you can manually check whether the FEN's castling rights match the kings' and rooks' initial position.
If you're trying to hack your interface to support Chess960 without modifying chess.js, then you probably need to parse the pgn manually, one move at a time. It can be tricky to write support for chess960 when using vanilla chess.js. It took me a few days of writing hacks. |
Ask for contributors
This is a possible example that is wrong. Can you help me block this potential move by a code example?
Error at move 7
Start FEN: rqnkbbnr/pppppppp/8/8/8/8/PPPPPPPP/RQNKBBNR w KQkq - 0 1
PGN: 1. d3 Nf6 2. Bd2 Nd6 3. e3 Kc8 4. Be2 Nd5 5. Nf3 Nxe3+ 6. fxe3 Ne4 7. O-O
Description
At FEN: b1rk1bqr/pppppppp/8/8/4B3/4P2P/PPPP1PPQ/BNRK3R w KQ - 3 8
I can wrongly PGN: d1f1
The Chessquid on the move I checked is impossible, and not a blue circle appears, but I am not 100% sure.
Thank you!
The text was updated successfully, but these errors were encountered: