This is a visual implementation and interactive toy from Advent of Code 2020, day 17: Conway Cubes.

Conway cubes follow two rules:

  • If a cube is active and exactly 2 or 3 of its neighbours are active, it remains active. Otherwise, it becomes inactive.
  • If a cube is inactive and exactly 3 of its neighbours are active, it becomes active. Otherwise, it remains inactive.

This simulation implements those rules. On start, you can click on cubes in the provided plane to enable/disable them (enabled cubes are larger than disabled ones). Once ready to simulate, hit the "Start Simulation!" button.

There's no end to how many cycles you can run the simulation, but you'll quickly run into performance issues if you go to far. Don't hesitate to hit that reset button!

Leave a comment

Log in with to leave a comment.