cgol-tui

Crates.iocgol-tui
lib.rscgol-tui
version0.6.9
created_at2024-02-29 20:04:22.079355+00
updated_at2025-03-16 18:24:39.123244+00
descriptionConway's Game of Life implementation with a TUI
homepage
repositoryhttps://github.com/JeromeSchmied/cgol-tui-rs
max_upload_size
id1158131
size636,533
Jeromos Kovács (jarjk)

documentation

https://docs.rs/cgol-tui

README

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 run cargo install --locked --path .

Usage

cgol-tui --help

eg.:

  • cgol-tui run the app with builtin patterns
  • curl https://conwaylife.com/patterns/fx153.cells | cgol-tui - the - stands for stdin, run the app with the builtin patterns and the fx153 fetched with curl
  • 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

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

License

Licensed under either of

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.

Commit count: 172

cargo fmt