UNPKG

@chess-fu/chess-game

Version:
24 lines (23 loc) 504 B
export declare type Color = 'w' | 'b'; export declare type GameResult = '1-0' | '0-1' | '1/2-1/2' | '*'; export interface Move { color: Color; piece: string; from: string; to: string; san: string; castle?: string; check?: '+' | '#'; enpass?: boolean; captured?: string; promotion?: string; } export interface MoveOptions { square?: string; color?: Color; verbose?: boolean; } export interface Offset { readonly x: number; readonly y: number; }