feat : update SF 17 engines files
This commit is contained in:
@@ -15,6 +15,7 @@ export class Stockfish16_1 {
|
||||
const enginePath = `engines/stockfish-16.1/stockfish-16.1${
|
||||
lite ? "-lite" : ""
|
||||
}${multiThreadIsSupported ? "" : "-single"}.js`;
|
||||
|
||||
const engineName = lite
|
||||
? EngineName.Stockfish16_1Lite
|
||||
: EngineName.Stockfish16_1;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user