feat: NCWF-5/6/7/8/9 chess analysis page and engine integration (#11)
Co-authored-by: Janis Eccarius <eccariusjanis@gmail.com> Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
export interface AnalysisRequest {
|
||||
fen: string;
|
||||
depth: number;
|
||||
}
|
||||
|
||||
export interface AnalysisResponse {
|
||||
eval: number;
|
||||
winChance: number;
|
||||
depth: number;
|
||||
bestMove: string;
|
||||
continuations: string[];
|
||||
}
|
||||
|
||||
export type MoveQuality = 'brilliant' | 'best' | 'good' | 'inaccuracy' | 'mistake' | 'blunder';
|
||||
|
||||
export interface AnnotatedMove {
|
||||
san: string;
|
||||
fen: string;
|
||||
evalBefore: number | null;
|
||||
evalAfter: number | null;
|
||||
quality: MoveQuality | null;
|
||||
bestMove: string | null;
|
||||
winChanceBefore: number | null;
|
||||
winChanceAfter: number | null;
|
||||
}
|
||||
Reference in New Issue
Block a user