For the given fen string -
k7/1R1RN3/p3p3/P3P2p/1PP4P/3K1PP1/8/8 b KQkq h3 0 1
Chess.js does not detect and show chess.moves() gives you ['0-0-0'], which is queen side castling, Not possible without a queen.
Any idea?
For the given fen string -
k7/1R1RN3/p3p3/P3P2p/1PP4P/3K1PP1/8/8 b KQkq h3 0 1
Chess.js does not detect and show chess.moves() gives you ['0-0-0'], which is queen side castling, Not possible without a queen.
Any idea?
Turns out to be a problem with the fen string, The castling flags were not set right!
The fen should be :
k7/1R1RN3/p3p3/P3P2p/1PP4P/3K1PP1/8/8 b - h3 0 1