Conway's Game of Life in Rust. It’s a fun way for me to learn Rust while building a classic simulation.
- Interactive terminal-based simulation of Conway's Game of Life.
- Customizable grid size and simulation options.
- Random seeding of the initial state.
- Detection if game entered steady state or oscilation
If you haven't already, you need to install Rust. Follow official installation guide.
- Clone the repository:
git clone https://github.com/mdambski/rusty-game-of-life.git
cd rusty-game-of-life
- Build the project:
cargo build --release
- Run the simulation:
cargo run
To customize the grid size, or simulation behaviour use provided command line options:
Options:
-g, --grid-size <GRID_SIZE> Grid size for the simulation [default: 30]
-e, --exit-steady Detect and stop at steady state or oscilation
Example:
cargo run -- --grid-size 50 --exit-steady
When running without steady state detection, press Ctrl+C
to exit the simulation.
Currently project has only unit tests covering game module. With time integration tests will be added, when the complexity grows.
- Inspired by Conway's Game of Life.