UNPKG

chess-easy

Version:

Chess engine that makes writing chessgame easier than writing a calculator

20 lines (19 loc) 466 B
import { ChessPieces, Colors } from "./common"; export interface GameStateField { color: Colors; piece: ChessPieces; } export type GameStateRow = (GameStateField | null)[]; export type GameState = GameStateRow[]; export type GameStateObject = { [key: string]: GameStateField; }; export type PossibleMoves = { [key: string]: string[]; }; export declare enum PromotionPossibility { QUEEN = "q", ROOK = "r", BISHOP = "b", KNIGHT = "k" }