feat : add games database
This commit is contained in:
29
src/types/game.ts
Normal file
29
src/types/game.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
export interface MoveEval {
|
||||
bestMove: string;
|
||||
lines: LineEval[];
|
||||
}
|
||||
|
||||
export interface LineEval {
|
||||
pv: string[];
|
||||
cp?: number;
|
||||
mate?: number;
|
||||
}
|
||||
|
||||
export interface GameEval {
|
||||
moves: MoveEval[];
|
||||
whiteAccuracy: number;
|
||||
blackAccuracy: number;
|
||||
}
|
||||
|
||||
export interface Game {
|
||||
id: number;
|
||||
pgn: string;
|
||||
event?: string;
|
||||
site?: string;
|
||||
date?: string;
|
||||
round?: string;
|
||||
white?: string;
|
||||
black?: string;
|
||||
result?: string;
|
||||
eval?: GameEval;
|
||||
}
|
||||
Reference in New Issue
Block a user