A programming puzzle for the ages.
Wikipedia provides a good description of Conway's Game of Life.
- Clone this repository to your local machine
- Install dependencies by running
bundle install
in the terminal - Serve index.html by running
python -m SimpleHTTPServer
in one tab - Run the tests by running
rake jasmine
in another tab
The world of Game of Life is played on a never-ending board of boxes. Each box is home to a little creature, which can be either alive or dead. Each creature might have 8 next-door neighbors. The Game of Life takes place over steps in time.
At each step, these things can happen to the creature:
-
Being Alone: a creature does not have neighbors, or has one neighbor, and dies.
-
Being Happy: a creature has two or three neighbors, and keeps living.
-
Being Crowded: a creature has more than three neighbors, and dies.
-
Making a Home: if a box does not have a creature in it, and that box has three neighbor-creatures, then a new creature is born in that box.