feat : play vs engine new page init

This commit is contained in:
GuillaumeSD
2024-03-18 02:48:34 +01:00
parent 1893937c4a
commit cd927ed6d7
11 changed files with 349 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
import { Color } from "@/types/enums";
import { Chess } from "chess.js";
import { atom } from "jotai";
export const gameAtom = atom(new Chess());
export const playerColorAtom = atom<Color>(Color.White);
export const engineSkillLevelAtom = atom<number>(1);
export const clickedSquaresAtom = atom<string[]>([]);