Files

1.9 KiB
Raw Permalink Blame History

Game of Life Sandbox

I enjoy simple algorithms and fractals, and Conway’s Game of Life is really cool to toy around with. A few simple rules, some cells, and suddenly there’s a lot going on.

This is my little sandbox for drawing patterns, watching them evolve, and messing around with whatever happens next. Written in C with OpenGL.

A board evolving forwards and backwards in a loop

Things to play with

  • Draw with brushes, lines, circles, or stamps like the Gosper Glider Gun.
  • Mirror your drawings, copy and paste patterns, and zoom in on the details.
  • Play forwards, rewind, or loop between generations forever.
  • Try the example boards, make your own, and save the ones you like.
  • Change the colors or let Rainbow Hue slowly cycle through them.

It starts with a blank board. Draw something, press Space, and see what it does. R takes you back to the start, Ctrl+Z undoes an edit, and Esc hides the controls. The Help tab has the rest of the shortcuts.

A couple of screenshots

Drawing shapes and patterns in the sandbox

Gosper Glider Gun in the sandbox

A longer look

Watch the showcase video

Run it

On Linux, with GCC, make, OpenGL, GLUT, X11 development libraries, and Python 3 installed:

./run.sh

For an installable Arch Linux package:

make package

Build and install instructions · Full guide · Example boards

MIT license.