ngx-chess-board
Version:
Chess game component
23 lines (13 loc) • 513 B
text/typescript
import { HistoryMove } from './history-move-provider/history-move';
import { ColorInput, PieceTypeInput } from './utils/inputs/piece-type-input';
export interface NgxChessBoardView {
reset(): void;
reverse(): void;
undo(): void;
getMoveHistory(): HistoryMove[];
setFEN(fen: string): void;
move(coords: string): void;
getFEN(): string;
setPGN(pgn: string): void;
addPiece(pieceTypeInput: PieceTypeInput, colorInput: ColorInput, coords: string);
}