0

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?

manlio
  • 18,345
  • 14
  • 76
  • 126
Vahid Alimohamadi
  • 4,900
  • 2
  • 22
  • 37

1 Answers1

0

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.

Vahid Alimohamadi
  • 4,900
  • 2
  • 22
  • 37