simple game of life

Jul 25, 2014  

(Just for fun)

Maybe I’ll add a GUI and some tools later, but for now you have to do something like:

(add-life 4 5)
(add-life 5 5)
(add-life 6 5)

which should show


followed by


and so on …


It’s easy to try out patterns. Here are a few typical ones:

Then you can do something like

(loop repeat 5 do (print-board) (step-board))

and watch a few iterations. Of course, this is probably better implemented as a mobile app, I suppose. But yeah, still fun. Try out a few other spaceships if you like …