feat : add click on engine lines

This commit is contained in:
GuillaumeSD
2025-05-11 18:21:45 +02:00
parent 74a2adbb7d
commit 6535fce2f4
22 changed files with 285 additions and 156 deletions

View File

@@ -7,7 +7,7 @@ import {
CustomSquareProps,
Square,
} from "react-chessboard/dist/chessboard/types";
import { moveClassificationColors } from "@/lib/chess";
import { CLASSIFICATION_COLORS } from "@/constants";
import { boardHueAtom } from "./states";
export interface Props {
@@ -110,7 +110,7 @@ const previousMoveSquareStyle = (
width: "100%",
height: "100%",
backgroundColor: moveClassification
? moveClassificationColors[moveClassification]
? CLASSIFICATION_COLORS[moveClassification]
: "#fad541",
opacity: 0.5,
});