feat : update SF 17 engines files

This commit is contained in:
GuillaumeSD
2025-04-15 19:21:52 +02:00
parent 52a8586999
commit 86effaef48
22 changed files with 47 additions and 23 deletions

View File

@@ -9,9 +9,13 @@ export class Stockfish17 {
throw new Error("Stockfish 17 is not supported");
}
const enginePath = lite
? "engines/stockfish-17/stockfish-17-lite-02843c1.js"
: "engines/stockfish-17/stockfish-17-aaa11cd.js";
const multiThreadIsSupported = isMultiThreadSupported();
if (!multiThreadIsSupported) console.log("Single thread mode");
const enginePath = `engines/stockfish-17/stockfish-17${
lite ? "-lite" : ""
}${multiThreadIsSupported ? "" : "-single"}.js`;
const engineName = lite
? EngineName.Stockfish17Lite
: EngineName.Stockfish17;
@@ -22,6 +26,6 @@ export class Stockfish17 {
}
public static isSupported() {
return isWasmSupported() && isMultiThreadSupported();
return isWasmSupported();
}
}