Tuesday, March 13, 2012

Conway's Game of Life in Racket

Since I have some free time right now, I thought it would be cool to try my hand at making a GoL simulator. I would have used C since that's just what I've been using lately, but I ended up doing it in Racket (Scheme).

The grid can be made toroidal or as if the edges are all zero. Putting in new patterns is pretty simple. Display is simple text output.

Source includes glider, lwss, and gosper gun patterns.