/stockfish

Returns Stockfish's response to the current position.

Skill Level

The skill level.

depth

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 classical stockfish w');
ws.send('/play_lan w e2e4');
ws.send('/stockfish "{\\"Skill Level\\":20}" "{\\"depth\\":12}"');
{
  "/stockfish": {
    "turn": "w",
    "pgn": "e5",
    "castlingAbility": "KQkq",
    "movetext": "1.e4 e5",
    "fen": "rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e6",
    "isCapture": false,
    "isCheck": false,
    "isMate": false,
    "isStalemate": false,
    "isFivefoldRepetition": false,
    "isFiftyMoveDraw": false,
    "isDeadPositionDraw": false,
    "mode": "stockfish",
    "variant": "classical"
  }
}