game-of-life-cli

0.0.2 • Public • Published

game-of-life-cli

A Node.js CLI application of Conway's Game of Life that supports specifying the display strings of alive and dead cells.

Install

$ npm install --global game-of-life-cli

Usage

$ game-of-life-cli --help

Usage: game-of-life-cli [options]

A Node.js CLI application of Conway's Game of Life that supports specifying the display strings of alive and dead cells.

Options:
  -c, --columns <number> Specify the number of columns on the board (default: 15)
  -r, --rows <number>    Specify the number of rows on the board (default: 15)
  -t, --time <number>    Specify the time interval on the order of milliseconds to step to the next generation (default: 500)
  -a, --alive <string>   Specify the display string of alive cells (default: '')
  -d, --dead <string>    Specify the display string of dead cells (default: '')
  -h, --help             Display help for command

Demo

$ game-of-life-cli

life_default

You can specify the display strings of alive and dead cells.

$ game-of-life-cli --alive 😃 --dead 👻

life_custom

Readme

Keywords

none

Package Sidebar

Install

npm i game-of-life-cli

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

7.63 kB

Total Files

10

Last publish

Collaborators

  • audiostakes