Personal toy implementation of Conway's Game of Life (to not be deleted after 45 minutes...)
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
features/support
lib
spec
.gitignore
Gemfile
MIT-LICENSE
README.md
Rakefile
conway.gemspec

README.md

Conway

A simple Game of Life implementation with a priority focus on object design.

It's probably a bit leaky of object references and hasn't had any go at optimizing the efficiency of the algorithm.

Conway comes with a very simple ASCII visualizer. It can be invoked as below, where the size argument determines the dimensions of the cell grid:

conway --size 25 --cells="10,2 9,3 8,3 9,4 10,4" --stats
conway -s 30 -c 2,3:3,3:3,2:2,2:3,4

When playing with the code itself, there's a sanity check Rake task:

rake glider

Please feel free to send feedback via the GitHub project or via email at mby AT mattyoho DOT com.