# Fractal Kitty

## Day 92 of 101 DoCC

Day 92 of 101 DoCC – this is my third play with cellular automata ( called Light Pollution). I have added some rules from the previous day. Note that the last rule has some random deaths.

See the Pen noisePollution by Sophia (@fractalkitty) on CodePen.

### Rules:

• Set 1:
• If a cell is alive and has 0, 1, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 4 neighbors alive, it comes back to life.
• Set 2:
• If a cell is alive and has 0, 1, 2, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 3, 4, or 5 neighbors alive, it comes back to life.
• Set 3:
• If a cell is alive and has 5 or 6 alive neighbors, it dies.
• If a cell is dead and has 3 neighbors alive, it comes back to life.
• Set 4:
• If a cell is alive and has 1, 2 or 3 alive neighbors, it dies.
• If a cell is dead and has 3 or 4 neighbors alive, it comes back to life.
• Set 5:
• If a cell is alive and has 3, 4, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 0, 1, or 2 neighbors alive, it comes back to life.
• Set 6:
• If a cell is alive and has 2, 3, 4, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 0, 1, or 2 neighbors alive, it comes back to life.
• Set 7:
• If a cell is alive and has 4, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 3 or 4 neighbors alive, it comes back to life.
• Set 8:
• If a cell is alive and has 0, 1, 5, or 6 alive neighbors, it dies.
• If a cell is dead and has 1 neighbor alive, it comes back to life.
• Set 9:
• If a cell is alive and has 0 or 6 alive neighbors, it dies.
• If a cell is dead and has 0 neighbors alive, it comes back to life.
• Set 10:
• If a cell is alive and has 3 alive neighbors, it dies.
• If a cell is dead and has 0 neighbors alive, it comes back to life.
• Set 11:
• If a cell is alive and has 3 alive neighbors or a random number greater than 1 (random(0,1.001), it dies.
• If a cell is dead and has 1 or 2 neighbors alive, it comes back to life.