Conway's Game of Life made with Pixel, a 2D graphics library for the Go language!
go build pixel-life
Left Mouse: Create cell
Right Mouse: Destroy live cell
N: Manually increment generation by 1
Space: Start/Stop simulation
G: Generate a board randomly
C: Clear board
F: Fill board
Q: Quit program
- Add support for "rules" plugins for Cellular Automata games other than Life
- Add board/window resize functionality
- Add support for command-line parameters (cell size, update tick-rate, etc.)
I will not be accepting pull requests but I will gladly accept suggestions for improvements. :)
Additionally, feel free to use this code for anything permitted under the BSD 3-Clause license.