@jharrilim/game-of-life
Version:
Game of life in CLI
19 lines • 633 B
TypeScript
/// <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