UNPKG

@jharrilim/game-of-life

Version:
19 lines 633 B
/// <reference types="node" /> import { Cell } from "./Cell"; import { EventEmitter } from "events"; import { Point } from "./Point"; export declare abstract class CellMap extends EventEmitter { private _width; private _height; private _cells; private _cycles; readonly cells: Cell[][]; constructor(_width: number, _height: number); cellAt(x: number, y: number): Cell; resize(width: number, height: number): void; cellSurroundings(x: number, y: number): Cell[]; seed(initialSeed?: Point[] | number): this; cycle(): this; private _applyCellRules; } //# sourceMappingURL=CellMap.d.ts.map