pixel-examples/community/game_of_life
Robin Eklind bc29868459 Update import paths.
Automated using:

	find . -type f | grep -v "\.git" | xargs -I '{}' sar -i "github.com/faiface/pixel/examples/" "github.com/faiface/pixel-examples/" "{}"

With the sar tool, https://godoc.org/github.com/mewkiz/cmd/sar

Updates faiface/pixel#135.
2018-09-04 00:12:02 +02:00
..
life addressing PR feedback 2018-01-18 20:44:54 -05:00
README.md addressing PR feedback 2018-01-18 20:44:54 -05:00
life.png addressing PR feedback 2018-01-18 20:44:54 -05:00
main.go Update import paths. 2018-09-04 00:12:02 +02:00

README.md

Conway's Game of Lfe

Created by Nathan Leniz. Inspired by and heavily uses the doc

The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970. The "game" is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves, or, for advanced "players", by creating patterns with particular properties. The Game has been reprogrammed multiple times in various coding languages.

For more information, please see the wikipedia article.

Use

go run main.go -h
  -frameRate duration
      The framerate in milliseconds (default 33ms)
  -size int
      The size of each cell (default 5)
  -windowSize float
      The pixel size of one side of the grid (default 800)

life