0.0.2 • Published 2 years ago

game-of-life-cli v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.0.2

2 years ago

0.0.1

3 years ago

0.0.0

3 years ago