This game follows the age old Conway rules for life.
You can populate the board randomly or
draw your own pattern with the mouse (it should work with "touch"
on an iPhone or iPad).
A single click will toggle the cell on/off, a moving mouse will draw the mouse trail.
The rules for the game of life as applied to each pixel are determined by the number of its 8
neighbors that can also be alive (or not):
If a cell is alive and it has 2 or 3 neighbors alive, it stays alive. Otherwise it dies from
either overpopulation or under population
If a cell is dead, it can come to life if there are 3 neighbors alive, otherwise it stays dead
You can also
start with a blank board, and increase the random cell creation probability
(slider below the canvas board) until life spontaneously starts.
You might find that you have to crank the probability up high to get life to start,
but then you can ease off and it will sustain itself nicely.
The slider on the bottom allows you to change the y-max value in the plot.
(On an iOS device, this only works in
landscape mode, so rotate and refresh if you did not start out that way!)
Drew Baden, 2020