Subscribe

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.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Technorati
  • Reddit
  • Digg
  • del.icio.us
  • StumbleUpon
  • DZone
  • ThisNext

Related posts:

Trackback URI | Comments RSS

Leave a Reply