feat : mui & state refacto

This commit is contained in:
GuillaumeSD
2024-02-20 05:08:27 +01:00
parent 70518a8bb8
commit 4502651492
31 changed files with 1481 additions and 800 deletions

View File

@@ -2,7 +2,7 @@ import { GameEval, LineEval, MoveEval } from "@/types/eval";
export class Stockfish {
private worker: Worker;
private ready: boolean = false;
private ready = false;
constructor() {
this.worker = new Worker(
@@ -14,7 +14,7 @@ export class Stockfish {
console.log("Stockfish created");
}
public isWasmSupported(): boolean {
public isWasmSupported() {
return (
typeof WebAssembly === "object" &&
WebAssembly.validate(