Closed MitchellWeg closed 6 years ago
What's the value of fen_position
?
r3k2r/ppp2Npp/1b5n/4p2b/2B1P2q/BQP2P2/P5PP/RN5K w kq - 1 0
I'm retrieving all my puzzle Fen-strings from a database.
- Bb5+ c6 2. Qe6+ Qe7 3. Qxe7#
This is the solution array.
Your FEN is invalid, it should be: r3k2r/ppp2Npp/1b5n/4p2b/2B1P2q/BQP2P2/P5PP/RN5K w kq - 0 1
I have a section on my Laravel website where the user can make some chess puzzle.
The function I wrote works for the black pieces, however when the user is white, every move made is always null and ChessJS just resets the position.....
My code: