UNPKG

@gobstones/gs-board-tsx

Version:
29 lines (28 loc) 1.19 kB
import { CellInfo, CellLocation } from "@gobstones/gobstones-gbb-parser"; export declare class Board { cells: CellInfo[][]; constructor(columnsQuantity: number, rowsQuantity: number, boardInfo: CellInfo[][] | undefined); getCell([x, y]: CellLocation): CellInfo; getColumnsQuantity(): number; getRowsQuantity(): number; addColumn(): Board; removeColumn(): Board; addRow(): Board; removeRow(): Board; setColumnsQuantity(n: number): Board; addColumns(x: number): Board; private removeColumns; setRowsQuantity(x: number): Board; private addRows; private removeRows; removeNBlueAt(_c: CellLocation, _n: number): Board; removeNBlackAt(_c: CellLocation, _n: number): Board; removeNRedAt(_c: CellLocation, _n: number): Board; removeNGreenAt(_c: CellLocation, _n: number): Board; addNBlueAtOn(_c: CellLocation, _n: Number): Board; addNBlackAtOn(_c: CellLocation, _n: Number): Board; addNGreenAtOn(_c: CellLocation, _n: Number): Board; addNRedAtOn(_c: CellLocation, _n: Number): Board; static initializeMatrix(columnsQuantity: number, rowsQuantity: number): CellInfo[][]; getCellInfo(): CellInfo[][]; }