Conways Game of Life

by joecooldoo
See Code Download Embed
This is my version of Conway's Game of Life!

Here's how Conway's Game of Life works:
There are eight cells next to one singular cell. If there are 2 or 3 neighboring cells next to a living cell, the cell will live. If there are three neighboring cells next to a dead cell, the cell will come to life. If there are fewer than two neighboring cells next to a living cell, the cell will die. If there are more than three neighboring cells next to a living cell, the cell will die. If there is a living cell where none of the above are true, the cell dies.

Cool, right?

You can toggle a cell's status by clicking on one it. Then press the space key on your keyboard to start the simulation! Holding down space will enter back into edit mode. If the simulation runs into an infinite loop it cannot escape from, it will stop the simulation automatically and enter edit mode.

Color codes:
The screen will flash colors to indicate the current status. Green means that the simulation has started. Orange means you have entered edit mode. Red means you are attempting to do something that you cannot do at that moment.

Created February 2, 2023

Last updated February 4, 2023

Published February 2, 2023