UNPKG

@obliczeniowo/elementary

Version:
12 lines (11 loc) 408 B
export type ChessColumn = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h'; export type ChessRow = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; export declare const columns: ChessColumn[]; export declare const rows: ChessRow[]; export declare class Address { column: ChessColumn; row: ChessRow; constructor(address: string); offset(row: number, column: number): Address | undefined; toString(): string; }