Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Game of Life
branch: master
Failed to load latest commit information.
lib refactor code
sinatra_app introduce position resolver
spec refactor code
.gitignore remove unecessary file from git
Gemfile reorganize dir structure
Gemfile.lock reorganize dir structure README
game_of_life.rb README

Game of Life


This is a simple implementation of the popular cellular automaton - Game of Life.
For more information, please read this:'s_Game_of_Life


In this implementation world is considered as a cylinder, so left and right edge are connected. It means that first and last cell in a row are neighbours.


There is an Sinatra app, so you can see how it works in your browser.
Application uses MongoDB to save every world state, so firstly install it.
When your mongoDB is ready to use, just go to sinatra_app dir and type

bundle install  
ruby homepage.rb
Something went wrong with that request. Please try again.