feat : play vs engine v0

This commit is contained in:
GuillaumeSD
2024-03-19 03:50:53 +01:00
parent 4864bf61f5
commit 438ec60107
7 changed files with 271 additions and 20 deletions

View File

@@ -5,6 +5,7 @@ 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 isGameInProgressAtom = atom(false);
export const clickedSquaresAtom = atom<string[]>([]);
export const playableSquaresAtom = atom<string[]>([]);