feat : add color to line evaluation

This commit is contained in:
GuillaumeSD
2024-07-20 22:18:36 +02:00
parent f1dfc659d3
commit 02eb959cc8
6 changed files with 77 additions and 18 deletions

View File

@@ -37,8 +37,8 @@ export function getSquareRenderer({
clickedSquares.includes(square)
? rightClickSquareStyle
: fromSquare === square || toSquare === square
? previousMoveSquareStyle(moveClassification)
: undefined;
? previousMoveSquareStyle(moveClassification)
: undefined;
const playableSquareStyle: CSSProperties | undefined =
playableSquares.includes(square) ? playableSquareStyles : undefined;