Skip to content

AudioStakes/game-of-life-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published