feat : add move classification

This commit is contained in:
GuillaumeSD
2024-03-29 03:53:16 +01:00
parent 714ed1039e
commit d9b322d9fa
9 changed files with 257 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ export const useCurrentPosition = (engineName?: EngineName) => {
boardHistory.length <= gameHistory.length &&
gameHistory.slice(0, boardHistory.length).join() === boardHistory.join()
) {
const evalIndex = board.history().length;
const evalIndex = boardHistory.length;
position.eval = gameEval.positions[evalIndex];
position.lastEval =