I implemented a chessboard with chessboard.js and when position change the FEN string is sending to my node.js server using socket.io
The question is, How i can prevent illegal moves or how i can find FEN is possible in every move situation?
I implemented a chessboard with chessboard.js and when position change the FEN string is sending to my node.js server using socket.io
The question is, How i can prevent illegal moves or how i can find FEN is possible in every move situation?
It is not possible, sending every move to server via socket and check the move validity in time with chess.js library, the solution i found in mind.