feat : add move classification
This commit is contained in:
@@ -2,7 +2,7 @@ import { Icon } from "@iconify/react";
|
||||
import { Grid, IconButton, Tooltip } from "@mui/material";
|
||||
import { useAtomValue } from "jotai";
|
||||
import { boardAtom, gameAtom } from "../states";
|
||||
import { useChessActions } from "@/hooks/useChess";
|
||||
import { useChessActions } from "@/hooks/useChessActions";
|
||||
|
||||
export default function GoToLastPositionButton() {
|
||||
const { setPgn: setBoardPgn } = useChessActions(boardAtom);
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Grid, IconButton, Tooltip } from "@mui/material";
|
||||
import { Icon } from "@iconify/react";
|
||||
import { useAtomValue } from "jotai";
|
||||
import { boardAtom } from "../states";
|
||||
import { useChessActions } from "@/hooks/useChess";
|
||||
import { useChessActions } from "@/hooks/useChessActions";
|
||||
import FlipBoardButton from "./flipBoardButton";
|
||||
import NextMoveButton from "./nextMoveButton";
|
||||
import GoToLastPositionButton from "./goToLastPositionButton";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Icon } from "@iconify/react";
|
||||
import { Grid, IconButton, Tooltip } from "@mui/material";
|
||||
import { useAtomValue } from "jotai";
|
||||
import { boardAtom, gameAtom } from "../states";
|
||||
import { useChessActions } from "@/hooks/useChess";
|
||||
import { useChessActions } from "@/hooks/useChessActions";
|
||||
|
||||
export default function NextMoveButton() {
|
||||
const { makeMove: makeBoardMove } = useChessActions(boardAtom);
|
||||
|
||||
Reference in New Issue
Block a user