Crates.io | terminal_game_of_life |
lib.rs | terminal_game_of_life |
version | 1.0.1 |
source | src |
created_at | 2021-04-09 15:35:28.653058 |
updated_at | 2023-07-01 19:47:05.703759 |
description | Conway's game of life implementation as a CLI rust crate |
homepage | https://git.sr.ht/~a14m/game-of-life/tree/master/CLI/rust/README.md |
repository | https://git.sr.ht/~a14m/game-of-life/tree/master/CLI/rust |
max_upload_size | |
id | 381347 |
size | 67,513 |
The implementation of the Conway's Game of Life rust package
$ cargo install terminal_game_of_life
$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 <seed> Specify the seed number to use as an initial state [default: random]
-i, --input <input> Specify the path/URL for the file to use as an initial state. (used instead of seed)
--width <width> Specify the width of generated universe. [default: terminal width]
--height <height> Specify the width of generated universe. [default: terminal height]
--live-cell <live-cell> Specify the live-cell representation [default: █]
--dead-cell <dead-cell> Specify the dead-cell representation [default: ]
-d, --delay <delay> Specify the introduced delay between each generation [default: 50]
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
rustup update
rustup install nightly
cd game-of-life/CLI/rust
.cargo build
to build the crate/CLI binaries.cargo run --
to run the built binaries.Run cargo fmt -- --check
Run cargo +nightly test
Run cargo doc
cargo build --release
and commit changesrust/v#{version_number}
ex: rust/v0.1.1-pre