fix : improve engine workers management

This commit is contained in:
GuillaumeSD
2025-05-14 04:00:04 +02:00
parent bff407fe2d
commit 8af6194895
14 changed files with 240 additions and 210 deletions

View File

@@ -19,7 +19,7 @@ import { usePlayersData } from "@/hooks/usePlayersData";
export default function BoardContainer() {
const screenSize = useScreenSize();
const engineName = useAtomValue(enginePlayNameAtom);
const engine = useEngine(engineName, 1);
const engine = useEngine(engineName);
const game = useAtomValue(gameAtom);
const { white, black } = usePlayersData(gameAtom);
const playerColor = useAtomValue(playerColorAtom);