cgolGo

module
v0.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2024 License: MIT

README

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. 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

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL