23 releases (6 breaking)
0.6.0 | Jan 30, 2025 |
---|---|
0.4.2 | Jan 23, 2025 |
0.2.12 | Jan 29, 2019 |
0.2.11 | Apr 26, 2018 |
0.0.3 | Jan 6, 2016 |
#54 in Games
883 downloads per month
34KB
896 lines
rust-life

Conway's Game of Life, in Rust
Installation
cargo install rust-life
Running
Usage: rust-life [OPTIONS]
Options:
-c, --cols <COLS>
Number of columns of in the board [default: 640]
-r, --rows <ROWS>
Number of rows of in the board [default: 400]
-t, --template <TEMPLATE>
A board template string
-a, --align <ALIGN>
Alignment of the template within the world [default: center] [possible values: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right]
-p, --padding <PADDING>...
Custom padding around template, takes 1 to 4 values (overrides alignment)
-g, --generations <GENERATIONS>
Number of generations to advance the template for the initial pattern
-G, --generation-limit <GENERATION_LIMIT>
Number of generations to display before stopping (runs forever if not given)
-s, --scale <SCALE>
Scale factor (pixels per cell side) [default: 2]
-x, --exit-on-finish
Close GUI window after final generation
--no-gui
Disable GUI
-u, --ups <UPS>
Updates per second (target) [default: 120]
-h, --help
Print help
-V, --version
Print version
Dependencies
~3–11MB
~117K SLoC