Skip to content
Conway's Game of Life written in Go
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
GameOfLife.gif
LICENSE
README.md
main.go

README.md

go-game-of-life

Conway's Game of Life1 written in Go using Pixel 2D Game Library2.

Demo


Game Of Life Run

Installation


go get -u github.com/shivakar/go-game-of-life

Usage


To run a Game of Life simulation:

go-game-of-life

Features:

  • Left-click on a pixel to make it alive
  • Alt+Left-click on a pixel to set it to dead
  • Left-click and drag to continuously add live pixels
  • Hold Ctrl key when left-click (and dragging) to reinitialize 11x11 grid around the mouse position
  • Press r to reinitialize
  • Press Space to pause and restart
  • Press c to clear the entire world

License


go-game-of-life is licensed under a MIT license.

You can’t perform that action at this time.