Skip to content

brunograssano/Conways-Game-of-Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Build instructions

To build the project use

cargo build

Run instructions

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

Game

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.

Implementation

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.

License

This project is under the MIT License

Photos

HelloWorld HelloWorldRunning ColorfulAndRandom ColorfulAndRandomRunning NoPaddingAndZoom