/stockfish

Returns Stockfish's response to the current position.

options

Stockfish options.

  • Skill Level is the skill level.

params

Stockfish params.

  • depth is the number of half moves the engine looks ahead.

Usage

Example

Start a classical game, play e2e4 and use Stockfish to respond with a move.

ws.send('/start "{\\"variant\\":\\"classical\\",\\"mode\\":\\"stockfish\\",\\"settings\\":{\\"color\\":\\"w\\"}}"');
ws.send('/play_lan "{\\"color\\":\\"w\\",\\"lan\\":\\"e2e4\\"}"');
ws.send('/stockfish "{\\"options\\":{\\"Skill Level\\":\\"20\\"},\\"params\\":{\\"depth\\":12}}"');
{
  "/stockfish": {
    "turn": "w",
    "movetext": "1.e4 c5",
    "fen": "rnbqkbnr/pp1ppppp/8/2p5/4P3/8/PPPP1PPP/RNBQKBNR w KQkq c6",
    "variant": "classical"
  }
}