From 566c66b021d83aae6af5490db8fdac670e3515c8 Mon Sep 17 00:00:00 2001 From: Elizura Date: Fri, 20 Feb 2026 09:52:32 +0300 Subject: [PATCH] Update enginegame.js to use the correct path for stockfish.js in the worker initialization. --- examples/enginegame.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/enginegame.js b/examples/enginegame.js index 78570326e..c224a2a25 100644 --- a/examples/enginegame.js +++ b/examples/enginegame.js @@ -3,8 +3,8 @@ function engineGame(options) { var game = new Chess(); var board; ///NOTE: If the WASM binary is not in the expected location, must be added after the hash. - var engine = typeof STOCKFISH === "function" ? STOCKFISH() : new Worker(options.stockfishjs || 'src/stockfish.js'); - var evaler = typeof STOCKFISH === "function" ? STOCKFISH() : new Worker(options.stockfishjs || 'src/stockfish.js'); + var engine = typeof STOCKFISH === "function" ? STOCKFISH() : new Worker(options.stockfishjs || 'node_modules/stockfish/bin/stockfish.js'); + var evaler = typeof STOCKFISH === "function" ? STOCKFISH() : new Worker(options.stockfishjs || 'node_modules/stockfish/bin/stockfish.js'); var engineStatus = {}; var displayScore = false; var time = { wtime: 300000, btime: 300000, winc: 2000, binc: 2000 };