Conway's Game of Life on a hexagonal grid.
This program requires Python 3.6.
All other requirements are listed in requirements.txt and can be installed with Pip:
pip install -r requirements.txt
General settings can be found in game.py. The following attributes are available:
RULE_CONFIGURATION
: Regulations for cell birth and death.GRID_CONFIGURATION
: Cell radius, grid size and grid croppingCOLOR_CONFIGURATION
: Color palette settingsSPEED
: Transition speed of gif frames
A new game can be started by calling the play()
method of a Game
instance.
The Game
constructor takes up to two parameters:
seed
: a 2 dimensional boolean arrayticks
: number of produced generations
Executing game.py will start a default game:
python game.py
Generated .gif files are saved as 'game.gif' in the main program folder.