UNPKG

@chess-labs/terminal

Version:

A command-line chess game powered by Stockfish

20 lines 668 B
import { EventEmitter } from 'node:events'; import type { GameConfig, UCIOption } from './types.js'; export declare class StockfishEngine extends EventEmitter { private config; private process; private isReady; private options; private isRestarting; constructor(config: GameConfig); start(): Promise<void>; private handleEngineOutput; private parseOption; private configureEngine; private attemptRestart; getBestMove(position: string, timeLimit?: number): Promise<string>; sendCommand(command: string): void; stop(): void; getAvailableOptions(): Map<string, UCIOption>; } //# sourceMappingURL=engine.d.ts.map