ben mardana

A simple implementation of Conway's Game of Life.


Notes

Rules *

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

The grid is drawn directly to the dom using hyperapp, a lightweight framework for authoring stateful html applications.


Since it draws directly to the dom, there is a limitation on size and speed. The underlying engine is abstracted so could be reused with a different drawing method such as canvas. A very rough three.js implementation can be found here