- Blind mode tutorial
lichess.org
Donate

Chessboard.js on client : How to interface to a chess engine

Hi all.

I'm using chessboardjs.com as a board gui.

I would like to interface to a chess engine to get the next best move.
(stockfish or other)

Could anyone point me perhaps to some tutorials for doing this?
Or some code examples?

The basic idea is....

-Ajax call to the chess engine with the current FEN
-The chess engine returns a FEN with a new move.
-Update the chessboardjs board with the new FEN.

Any help would be much appreciated.

Thanks and regards,

Henry.

Hi all. I'm using chessboardjs.com as a board gui. I would like to interface to a chess engine to get the next best move. (stockfish or other) Could anyone point me perhaps to some tutorials for doing this? Or some code examples? The basic idea is.... -Ajax call to the chess engine with the current FEN -The chess engine returns a FEN with a new move. -Update the chessboardjs board with the new FEN. Any help would be much appreciated. Thanks and regards, Henry.

This topic has been archived and can no longer be replied to.