author: Pierre-Jean Pollot.
- Language C11 with the graphic library SDL2.
- gcc compiler.
There are four types of cells:
Dead cells
in black.Living cells
in white.Newborn cells
in green.Dying cells
in red.
Newborn cells and Dying cells will become respectively Living cells and Dead cells at the next step. For creating those two types of cells, Dead cells and Living cells are following the Game of life's rules that can be found here.
Colorful mode: also prints Dying and Newborn cells.
In the document root, enter in the command line:
make
Then run the program by typing:
./golife [-i] number of iterations [-t] time in milliseconds [-p] initial probability that a cell is living [-c]
-c : enables the Colorful mode.
By default, it will iterate 300 times
and change state each 70ms
for an initial porosity of 0.15
.
For changing the display and the grid, you can change their parameters in the file src/properties.h.