style : UI small improvements

This commit is contained in:
GuillaumeSD
2024-03-09 02:49:09 +01:00
parent 0ffba8c6c7
commit ef4c090834
3 changed files with 10 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ export abstract class UciEngine {
const result = await this.evaluatePosition(fen, depth);
positions.push(result);
setEvaluationProgress?.(
Math.max((fens.indexOf(fen) / fens.length) * 100 - 5, 2)
Math.max(((fens.indexOf(fen) + 1) / fens.length) * 100 - 2, 2)
);
}