This is an engine for various cellular automata, such as Conway's Game of Life based on Brandon Smith's original Game of Life implementation in Rust.
It uses Piston to create a window and draw the world state to it.
Assuming you have cargo
installed, just execute cargo run
To load any of Life example patterns do as following
cargo run -- m l -i src/configurations/glider.txt
To run without cargo
, using just build output
...target/debug/entropylife -m l -i ../../src/configurations/glider.txt
When run with "-m a" input arguments it runs Langton's Ant algorithm
When run with "-m l" input arguments it runs Conway's Game of Life algorithm
Specify -r b[0-9]*s[0-9] command-line key, examples:
cargo run -- m l -i src/configurations/glider.txt -r b3s23
cargo run -- m l -i src/configurations/agar.txt -r b36s23
Following commands are supported:
- Move around using cursor keys
- Zoom in/Zoom out: X/Z
- Pause/Resume: P/R
- Run slower/faster: S/F
- Dump info (generation count and speed): I
- Invert colors: C
- More command-line parameters (rules, entropy/energy config)
- RLE file reading support
- Edit and save support