To build the project use
cargo build
To run the project you can use
cargo run [options]
[options]
You can run the program with the following options, the order of the arguments doesn't matter
* colorful, c ----- The cells will appear with random colors
* random, r ----- The game will start with a random state
* no_padding, p ----- Disables the padding of the cells
Without options the game will start in default settings (empty board, black cells with padding)
Example
cargo run colorful r no_padding
Once the game starts, you can click the cells you want to activate. When you are ready,
you can start the game with return
and pause it with p
.
While the simulation is running you can still activate cells (though they may disappear soon if alone).
Also, you can zoom in with the mouse wheel. If you want to move while zoomed in, you can do so with the keyboard arrows.
You can restart the game at any moment with r
.
This is the first project for me in Rust, so please feel free to provide feedback.
The game was made entirely with Rust using Piston.
This project is under the MIT License