I managed to build a game while learning several programming languages, one of them is rust. You can check what a got after a couple of weeks learning here.
- If you don't have Rust Programming Language installed, please go here and install it, or use this if you’re running macOS, Linux, or another Unix-like OS:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Clone the repository to your machine in your place.
git clone https://github.com/vuichka/game-of-life-rust.git
- Run
cargo run --release
or in developer mode
cargo run
The games stops when you press on Pause logo. When paused you can draw and erase any lives you want.
R
- random field restartD
- dead field restartP
orSPACE
- Pause/Unpause the gameM
- switch drawer to brush/eraser
Use https://conwaylife.com/patterns/
H
- to spawn any from your clipboard on your mouse cursor1
- to spawn a glider on mouse cursor2
- to spawn a Gosper glider gun.
If you have any other keyboard layout than qwerty, please press qwerty keys. It's hardcoded.