feat : add evaluation bar

This commit is contained in:
GuillaumeSD
2024-02-25 00:35:02 +01:00
parent 1f748f99ca
commit 892004f0d0
7 changed files with 158 additions and 26 deletions

View File

@@ -5,10 +5,11 @@ import { boardAtom, engineMultiPvAtom, gameAtom } from "./states";
import LineEvaluation from "./lineEvaluation";
import { useCurrentMove } from "@/hooks/useCurrentMove";
import { LineEval } from "@/types/eval";
import { EngineName } from "@/types/enums";
export default function ReviewPanelBody() {
const linesNumber = useAtomValue(engineMultiPvAtom);
const move = useCurrentMove();
const move = useCurrentMove(EngineName.Stockfish16);
const game = useAtomValue(gameAtom);
const board = useAtomValue(boardAtom);