A simple implementation of Conway's Game of Life.
- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- 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