This is an implementation of John Conway's Game Of Life in the Rust programming language.
This program is a port of this Haskell program.
The generations are animated at 120 frames per second.
Prerequisites
- Cargo was used to build this project.
- SDL2 was used (via these bindings) for window management, input and rendering.
Run cargo build --release
to compile the source code.
To run the program from this directory, run cargo run --release
.
Click the left mouse button to place a pattern where you clicked.
Click and drag the right mouse button to continuously place patterns as you drag the mouse.
Press the numbers 1, 2 or 3 to change the selected pattern from presets.
Press R to rotate the selected pattern 90 degrees counterclockwise.
Press P to pause and unpause the evolution of the generations.
Press Escape to quit.