Conway's Game of Life in Ruby
Latest commit 06a5dd4 Feb 13, 2012 @arnab Minor tweak to cuke feature
Failed to load latest commit information.
scripts Added a script to interact with the code Jan 8, 2012
spec Decoupled inputters and outputters from Game and hence allowing board… Jan 8, 2012
.gitignore Bundled as a gem, version 1.0.0 Feb 12, 2012
.rdebugrc Added debugger and fixed the bug in Board#cell_at Jan 7, 2012
.rspec Added cucumber Jan 6, 2012
.rvmrc create the rvm gemset if it's not found Jan 6, 2012
.yardopts Got through the first test scenario (Block pattern) without implement… Jan 6, 2012
Gemfile moved the license file Jan 8, 2012 cannot support jruby as redcloth is not available Jan 8, 2012
cucumber.yml Updated cuke scenarios and cucumber config to not run @wip by default Jan 7, 2012
game_of_life.gemsepc Bundled as a gem, version 1.0.0 Feb 12, 2012 spelling and minor documentation changes Jan 8, 2012
tasks.txt spelling and minor documentation changes Jan 8, 2012

Conway's Game of Life, in Ruby

Build Status


See the notes file for details about my thoughts.


  • If you are using rvm, as soon as you cd into this directory a gemset will be created, wherein all the gems will be installed by bundler
  • So the only steps you need to take are:
    1. gem install bundler
    2. bundle install

How to play

  • Run the cucumber steps to see examples.
  • You can play with the code with the simple script provided: ./scripts/play_game.rb examples/pulsar.txt



Build your own

  • Follow setup steps above if you have not already
  • Generate the yard dpcumentation by running: yard server --reload
  • Then you can see it at http://localhost:8808/

Supported Rubies

Tested against the following Ruby implementations:


Copyright (c) 2012 Arnab Deka. See LICENSE for details.