UNPKG

@jharrilim/game-of-life

Version:
22 lines 445 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Cell { constructor(x, y) { this._state = false; this._position = { x, y }; } get position() { return this._position; } get isAlive() { return this._state; } die() { this._state = false; } live() { this._state = true; } } exports.Cell = Cell; //# sourceMappingURL=Cell.js.map