KnutZuidema / GameOfLife

Modified version of the classic Game of Life, with 3 "races" fighting each other

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GameOfLife

Modified version of the classic Game of Life, with 3 "races" fighting each other

get it

If you already have Boost and SFML installed drop the --recursive

git clone --recursive https://github.com/KnutZuidema/GameOfLife.git

Build

Prerequisites

Building

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

Usage

Argument (=default)Description
--helpproduce 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.

About

Modified version of the classic Game of Life, with 3 "races" fighting each other

License:GNU General Public License v3.0


Languages

Language:C++ 76.8%Language:Batchfile 18.0%Language:CMake 5.3%