feat : add game panel info

This commit is contained in:
GuillaumeSD
2024-02-24 16:32:22 +01:00
parent 6156e4a228
commit 035591208f
17 changed files with 290 additions and 73 deletions

View File

@@ -4,6 +4,6 @@ export enum GameOrigin {
Lichess = "lichess",
}
export enum Engine {
export enum EngineName {
Stockfish16 = "stockfish_16",
}

View File

@@ -1,4 +1,4 @@
import { Engine } from "./enums";
import { EngineName } from "./enums";
export interface MoveEval {
bestMove: string;
@@ -19,7 +19,7 @@ export interface Accuracy {
}
export interface EngineSettings {
name: Engine;
engine: EngineName;
depth: number;
multiPv: number;
date: string;

View File

@@ -7,8 +7,15 @@ export interface Game {
site?: string;
date?: string;
round?: string;
white?: string;
black?: string;
white: Player;
black: Player;
result?: string;
eval?: GameEval;
termination?: string;
timeControl?: string;
}
export interface Player {
name?: string;
rating?: number;
}