This is a sample implementation of the game of life in go using faiface/pixel
2D game library (https://github.com/faiface/pixel).
Features:
- Graphical User Interface with different colors representing the cell state and condition
- Customizable width, height, cell size, and framerate (see Usage)
- A new random board is populated at every run
To run the game run make run
in the root directory of the repo.
-cellSize int
The pixel size of each cell (default 30)
-frameRate duration
The framerate in milliseconds (default 500ms)
-height float
The pixel size of the height of the grid (default 300)
-width float
The pixel size of the width of the grid (default 600)