MCPcopy Index your code
hub / github.com/SimonWaldherr/cgolGo

github.com/SimonWaldherr/cgolGo @v0.12.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.12.0 ↗ · + Follow
53 symbols 153 edges 6 files 26 documented · 49%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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

Extension points exported contracts — how you extend this code

Visualizer (Interface)
Visualizer is an interface for different output options. [3 implementers]
cmd/cgol/main.go

Core symbols most depended-on inside this repo

AddFrame
called by 9
cmd/cgol/main.go
LoadFirstRound
called by 9
life/init.go
setVitality
called by 9
life/life.go
GenerateFirstRound
called by 7
life/init.go
NextRound
called by 6
life/life.go
Setup
called by 5
cmd/cgol/main.go
Complete
called by 5
cmd/cgol/main.go
GetCells
called by 5
life/life.go

Shape

Method 26
Function 21
Struct 5
Interface 1

Languages

Go100%

Modules by API surface

cmd/cgol/main.go22 symbols
life/life.go11 symbols
life/life_test.go6 symbols
life/init.go6 symbols
gif/gif.go6 symbols
gif/gif_test.go2 symbols

For agents

$ claude mcp add cgolGo \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page