Conway's Game of Life written in Go
Using Homebrew (OS X / Linux)
brew install kulapard/tap/golUsing Homebrew (OS X / Linux)
brew update
brew upgrade golRun with default parameters (size 30 x 40, random initial state):
gol runRun initial state from file:
gol run --file ./examples/board.txtTo specify the size of the board and speed of the game:
gol run --rows 30 --cols 40 --speed 10File format:
.(dot) - dead cell0(zero) - alive cell(space) - ignored, uses for readability\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 --helpThis project is licensed under the MIT License. See the LICENSE file for more information.
