Conway's Game of Life1 written in Go using Pixel 2D Game Library2.
go get -u github.com/shivakar/go-game-of-life
To run a Game of Life simulation:
- 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
Ctrlkey when left-click (and dragging) to reinitialize 11x11 grid around the mouse position
Spaceto pause and restart
cto clear the entire world
go-game-of-life is licensed under a MIT license.