Conway's Game of Life

This implementation of Conway's Game of Life is part of my effort to get familiar with CoffeScript and canvas HTML5 element. It is simple implementation that gives you enough to enjoy its brilliance. More about the game you can find in the Wikipedia article

Click around the grid to put your initial cell generation to life. When you are ready to see how they evolve just click the play button and watch. Evolution of your cell generations will start and by clicking on the grid during the simulation you can help them evolve in various directions. You can always stop the game, set some new cells and then continue to watch their evolution. There are 4 rules according to which cells evolve in order to form the next generation:

  1. Any live cell with fewer than two live neighbours dies.
  2. Any live cell with two or three live neighbours lives on.
  3. Any live cell with more than three live neighbours dies.
  4. Any dead cell with exactly three live neighbours becomes a live cell.

Source code

Code for the game is available on GitHub.

About me

You can see more about me here and here and here Ivan Jovanovic