Skip to content

SimonWaldherr/cgolGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cgolGo

Go Report Card Codebeat badge Coverage Status GoDoc License MIT

Conway's game of life in Golang

Conway's Game of Life in Golang

Conway's Game of Life is a zero-player game - a cellular automaton simulation invented by John Horton Conway. There are many implementations in every important programming language here on GitHub or search all of GitHub. The map of a Game of Life consists of a two-dimensional grid of square cells. Each cell can have one of to two possible states - dead or alive. The future of a cell is determined by its own current status and that of the eight direct neighbors - vertically, horizontally and diagonally.

  • a living cell with two or three living neighbors stays alive
  • a dead cell with three living neighbors becomes a live cell
  • every other cell will be a dead cell in the next round

Examples

01.gif

01.gif

02.gif

02.gif

03.gif

03.gif

15.gif

15.gif

License

MIT