refacto : global refacto

This commit is contained in:
GuillaumeSD
2024-02-22 23:18:02 +01:00
parent 2a74b62bae
commit 2af0959e82
24 changed files with 230 additions and 190 deletions

20
src/types/eval.ts Normal file
View File

@@ -0,0 +1,20 @@
export interface MoveEval {
bestMove: string;
lines: LineEval[];
}
export interface LineEval {
pv: string[];
cp?: number;
mate?: number;
}
export interface Accuracy {
white: number;
black: number;
}
export interface GameEval {
moves: MoveEval[];
accuracy: Accuracy;
}