feat : add move classification
This commit is contained in:
@@ -6,3 +6,13 @@ export enum GameOrigin {
|
||||
export enum EngineName {
|
||||
Stockfish16 = "stockfish_16",
|
||||
}
|
||||
|
||||
export enum MoveClassification {
|
||||
Blunder = "blunder",
|
||||
Mistake = "mistake",
|
||||
Inaccuracy = "inaccuracy",
|
||||
Good = "good",
|
||||
Excellent = "excellent",
|
||||
Best = "best",
|
||||
Book = "book",
|
||||
}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { Move } from "chess.js";
|
||||
import { EngineName } from "./enums";
|
||||
import { EngineName, MoveClassification } from "./enums";
|
||||
|
||||
export interface MoveEval {
|
||||
bestMove: string;
|
||||
bestMove?: string;
|
||||
moveClassification?: MoveClassification;
|
||||
opening?: string;
|
||||
lines: LineEval[];
|
||||
}
|
||||
|
||||
@@ -43,3 +45,10 @@ export type CurrentMove = Partial<Move> & {
|
||||
eval?: MoveEval;
|
||||
lastEval?: MoveEval;
|
||||
};
|
||||
|
||||
export interface EvaluateGameParams {
|
||||
fens: string[];
|
||||
uciMoves: string[];
|
||||
depth?: number;
|
||||
multiPv?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user