GameOfLife

The implementation of the Conway's Game of Life rust package

Installation

bash $ cargo install terminal_game_of_life

Usage

bash $game-of-life -i https://example.com --live-cell + $game-of-life -i /path/to/file.txt --height 35 --width 35 $game-of-life -s 1337 --delay 250

Check game-of-life --help for usage info.

``` USAGE: game-of-life [OPTIONS]

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -s, --seed Specify the seed number to use as an initial state [default: random] -i, --input Specify the path/URL for the file to use as an initial state. (used instead of seed) --width Specify the width of generated universe. [default: terminal width] --height Specify the width of generated universe. [default: terminal height] --live-cell Specify the live-cell representation [default: █] --dead-cell Specify the dead-cell representation [default: ] -d, --delay Specify the introduced delay between each generation [default: 50] ```

Demo

asciicast

Development

Linting

Run cargo fmt -- --check

Testing

Run cargo +nightly test

Documentation

Run cargo doc

Release

Extra information

Contributing

License

Code of Conduct