fix : lint warnings & errors
This commit is contained in:
@@ -2,14 +2,14 @@ import { EngineName } from "@/types/enums";
|
||||
import { UciEngine } from "./uciEngine";
|
||||
|
||||
export class Stockfish16 extends UciEngine {
|
||||
constructor(multiPv: number) {
|
||||
constructor() {
|
||||
const isWasmSupported = Stockfish16.isWasmSupported();
|
||||
|
||||
const enginePath = isWasmSupported
|
||||
? "engines/stockfish-wasm/stockfish-nnue-16-single.js"
|
||||
: "engines/stockfish.js";
|
||||
|
||||
super(EngineName.Stockfish16, enginePath, multiPv);
|
||||
super(EngineName.Stockfish16, enginePath);
|
||||
}
|
||||
|
||||
public static isWasmSupported() {
|
||||
|
||||
@@ -10,12 +10,10 @@ export abstract class UciEngine {
|
||||
private worker: Worker;
|
||||
private ready = false;
|
||||
private engineName: EngineName;
|
||||
private multiPv: number;
|
||||
private multiPv = 3;
|
||||
|
||||
constructor(engineName: EngineName, enginePath: string, multiPv: number) {
|
||||
constructor(engineName: EngineName, enginePath: string) {
|
||||
this.engineName = engineName;
|
||||
this.multiPv = multiPv;
|
||||
|
||||
this.worker = new Worker(enginePath);
|
||||
|
||||
console.log(`${engineName} created`);
|
||||
|
||||
Reference in New Issue
Block a user