feat : add game panel info
This commit is contained in:
@@ -4,6 +4,6 @@ export enum GameOrigin {
|
||||
Lichess = "lichess",
|
||||
}
|
||||
|
||||
export enum Engine {
|
||||
export enum EngineName {
|
||||
Stockfish16 = "stockfish_16",
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user