Conway’s Life in Ruby(Cube)

Inspired by the animated patterns in a stress test I put together an implemetation of the original cellular automaton program ‘life’ using ruby and the extension I’ve been hacking on lately.

It’s a simple idea but it can produce some very nice patterns.

Here’s life out of control, if you muck with the death condition:

Life in Ruby(Cube)

Here’s a stable pattern produced by the block and blinker in the sample:

Stable Block and Blinker

The code will be part of the samples but if you want to take a look I’ve uploaded it. Any comments are welcome, I know that I’m not the best Ruby coder out there.

This entry was posted in ruby, rubycube. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>