python3 game_of_life.py game_of_life.json
There area number of different starting configurations to choose from in the configuration file: game_of_life.json
You can specify any starting configurations given in the file by changing the value of the "Preset" key
"Preset": "Blinker" /*Blinker preset*/
You can choose from the various specified presets given below:
Glider
Blinker
Toad
Pulsar
GosperGun
Diehard
Boat
Beacon
Acorn
Spaceship
Parameters in configuration file:
- Rows: number of row in the grid
- Columns: number of row in the grid
- TimeStep: time in seconds between two iterations of the game.
- Preset: initial configuration of the game. Presets can be chosen from the various configurations given in the file itself.
- CellDimension: dimension of the square cell.
- BackgroundColor: color of background (denotes dead cells). Given as hex codes
- CellColor: color of live cells. Given as hex codes
Note: The script depends on tkinter for GUI
For python 2 just uncomment line #2