Conway's Game of Life written in Go
Using Homebrew (OS X / Linux)
brew install kulapard/tap/gol
Using Homebrew (OS X / Linux)
brew upgrade kulapard/tap/gol
Run with default parameters (size 30 x 40, random initial state):
gol run
Run initial state from file:
gol run --file ./examples/board.txt
To specify the size of the board and speed of the game:
gol run --rows 30 --cols 40 --speed 10
File format:
.
(dot) - dead cell0
(zero) - alive cell\n
(new line) - end of row- all other characters cause a parsing error
Example:
. . . . .
. . 0 . .
. 0 . 0 .
. . 0 . .
. . . . .
To see all available options:
gol run --help
This project is licensed under the MIT License. See the LICENSE file for more information.