oakmac / chessboardjs

JavaScript chessboard
https://chessboardjs.com
MIT License
2.02k stars 406 forks source link

Move notation chessjs and chessboardjs #92

Closed AndyPi closed 9 years ago

AndyPi commented 9 years ago

I am trying a rough and ready integration of stockfish with chessboardjs. I am using example 5001 as start point. I notice that chessjs uses standard algebraic while chessboardjs and stockfish use long. Is there a utility available for conversion?

oakmac commented 9 years ago

chessboard.js cannot support Algebraic notation because it doesn't have knowledge of the game (ie: who's move it is, whether en passant is possible, how the pieces move, etc).

This logic is better left to the chess.js library, and I believe it's API supports multiple forms of notation.