fix : uciMoves for live eval classification

This commit is contained in:
GuillaumeSD
2024-04-14 20:59:55 +02:00
parent 5379893288
commit 9b020df210

View File

@@ -95,7 +95,7 @@ export const useCurrentPosition = (engineName?: EngineName) => {
const params = getEvaluateGameParams(board); const params = getEvaluateGameParams(board);
const fens = params.fens.slice(board.turn() === "w" ? -3 : -4); const fens = params.fens.slice(board.turn() === "w" ? -3 : -4);
const uciMoves = params.uciMoves.slice(board.turn() === "w" ? -3 : -4); const uciMoves = params.uciMoves.slice(board.turn() === "w" ? -2 : -3);
const lastRawEval = await getFenEngineEval(fens.slice(-2)[0]); const lastRawEval = await getFenEngineEval(fens.slice(-2)[0]);
const rawPositions: PositionEval[] = fens.map((_, idx) => { const rawPositions: PositionEval[] = fens.map((_, idx) => {