Skip to content

trevorah/game-of-life-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Game of Life (with Color!)

it makes rainbows!

Play with Conway's Game of Life, but with a twist! Every new cell inherits its color from its parents (along with a slight color mutation).

The rules are still the standard set of 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.

How to run

Open index.html and wiggle your mouse about.