UNPKG

chlss

Version:

Open-Source Chess Engine in TypeScript.

14 lines (13 loc) 426 B
import { SquareIndex } from "./square"; import { Piece } from "./piece"; export type Figure = "knight" | "bishop" | "queen" | "rook"; export interface IMove { from: SquareIndex; to: SquareIndex; piece: Piece; targetPiece: Piece; setEnPassant: SquareIndex | null; promotion: Figure | undefined; isPromo: boolean; } export declare function isPromotionMove(piece: Piece, targetPosY: number): boolean;