Owns a persistent Stockfish process for the session and keeps the eval bar, score, depth and principal variations in sync with the board position.
Arguments
- id
The module id.
- chess_ctx
A chess.js V8 context from
new_chess_context(), used to convert engine moves to SAN.- incoming
A reactive returning a position to load into the board - either a bare FEN string, or a list with
fen, an optionalorientation("white"/"black") and an optionalnonceto force a reload of an unchanged FEN - orNULL.