Game of Life

I made this one as a little coding challange for myself.

It's the cellular automata of Conways Game of Life
A white pixel is alive. A black pixel is dead.
Each Pixel follows these rules:

  1. Any live cell with fewer than two live neighbours dies, as if caused 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.

Leave a comment

Log in with itch.io to leave a comment.