#conway #tui #game-of-life

bin+lib cgol-tui

Conway's Game of Life implementation with a TUI

7 unstable releases (3 breaking)

0.6.3 Nov 17, 2024
0.6.2 Oct 21, 2024
0.5.3 Sep 30, 2024
0.3.0 Mar 24, 2024
0.2.1 Feb 29, 2024

#113 in Games

Download history 7/week @ 2024-09-19 149/week @ 2024-09-26 181/week @ 2024-10-03 28/week @ 2024-10-10 146/week @ 2024-10-17 21/week @ 2024-10-24 12/week @ 2024-10-31 12/week @ 2024-11-07 110/week @ 2024-11-14 17/week @ 2024-11-21 2/week @ 2024-11-28

144 downloads per month

MIT/Apache

605KB
1K SLoC

Conway's Game of Life TUI in Rust

Usage

installation methods

  • cargo install cgol-tui
  • cargo install --locked --git "https://github.com/JeromeSchmied/cgol-tui-rs"
  • clone the repo and run cargo install --locked --path .

after

[curl "https://conwaylife.com/patterns/<pattern>.cells" | ] cgol-tui [[-],<pattern>.cells,...] eg.:

  • cgol-tui
  • curl https://conwaylife.com/patterns/fx153.cells | cgol-tui - the - stands for stdin
  • cgol-tui my_own_pattern.cells fx153.cells

Script

there is a fish script provided under scripts for viewing patterns from conwaylife.com
usage: pattern.fish <PATTERN_NAME> [OPTIONS]
PATTERN_NAME: either a name of a pattern, or nothing to list all patterns
OPTIONS: -d, --download download to /tmp

needed tools

Sample

Sample

Todos

  • initial tui support
  • renaming on gh
  • error handling
  • publishing to 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.

Dependencies

~6–15MB
~207K SLoC