@jharrilim/game-of-life
Version:
Game of life in CLI
22 lines • 445 B
JavaScript
;
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