UNPKG

@chess-labs/terminal

Version:

A command-line chess game powered by Stockfish

25 lines 788 B
import type { GameConfig, GameState, MoveResult } from './types.js'; export declare class ChessGame { private config; private coreGameState; private engine; private gameState; private moveHistory; constructor(config: GameConfig); initialize(): Promise<void>; displayBoard(): void; private formatBoard; makePlayerMove(from: string, to: string): Promise<MoveResult>; private boardToFen; private pieceToFenChar; makeEngineMove(): Promise<MoveResult>; private parsePosition; private formatPosition; getGameState(): GameState; getCurrentPlayer(): 'white' | 'black'; getMoveHistory(): string[]; getPlayerColor(): 'white' | 'black'; isPlayerTurn(): boolean; endGame(): void; } //# sourceMappingURL=game.d.ts.map