9 unstable releases (3 breaking)
new 0.6.9 | Mar 16, 2025 |
---|---|
0.6.8 | Jan 15, 2025 |
0.6.3 | Nov 17, 2024 |
0.6.2 | Oct 21, 2024 |
0.2.1 | Feb 29, 2024 |
#32 in Games
605KB
1K
SLoC
Conway's Game of Life TUI in Rust
Installation
- there are pre-built binaries for mainstream platforms: releases
having the Rust toolchain installed
cargo install cgol-tui
cargo install --locked --git "https://github.com/JeromeSchmied/cgol-tui-rs"
- clone the repo (
git clone https://github.com/jeromeschmied/cgol-tui-rs
) and runcargo install --locked --path .
Usage
cgol-tui --help
eg.:
cgol-tui
run the app with builtin patternscurl https://conwaylife.com/patterns/fx153.cells | cgol-tui -
the-
stands forstdin
, run the app with the builtin patterns and the fx153 fetched withcurl
cgol-tui my_own_pattern.cells fx153.cells
run defaults and two more, own patterns
Script
there is a fish script provided under scripts for viewing patterns from conwaylife.com
see fish scripts/pattern.fish --help
needed tools
Sample
Todos
- initial tui support
- renaming on gh
- error handling
- publishing on crates.io
- changing to
Canvas
for rendering viewer block - the ability to parse
.cells
files, from conwaylife.com - display the names of patterns
Acknowledgements
- The core of this app is adapted from the Rust-Wasm tutorial.
- main dependencies:
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Dependencies
~7–16MB
~229K SLoC