Modified version of the classic Game of Life, with 3 "races" fighting each other
If you already have Boost and SFML installed drop the --recursive
git clone --recursive https://github.com/KnutZuidema/GameOfLife.git
build_boost
build_sfml
cmake .
make
If you have Boost and SFML installed elsewhere you have to pass the include
and lib
directories to CMake
cmake -DBOOST_INCLUDEDIR=<dir> -DBOOST_LIBRARYDIR=<dir> -DSFML_INCLUDEDIR=<dir> -DSFML_LIBRARYDIR=<dir>
You also need to make sure the shared libraries can be found
Argument (=default) | Description |
---|---|
--help | produce this help message |
-w [ --width ] arg (=400) | uint, amount of cells horizontally |
-h [ --height ] arg (=300) | uint, amount of cells vertically |
-s [ --spawn_chance ] arg (=100) | uint, chance of a living cell per 1000 |
-c [ --cell_size ] arg (=3) | uint, size of the individual cells in pixels |
-b [ --border_size ] arg (=30) | uint, size of the border in pixels |
-f [ --frame_rate ] arg (=30) | uint, max frame rate |
Can also use GameOfLife --help
for usage information.