I vaguely remember reading about a programming exercise where objects are drawn on the screen. If an object has less than 2 neighbors, it dies because it is lonely, if it has more than 3 it dies because it is crowded. If the amount of neighbors is 2 or 3 then it will spawn children. the general idea was to see how many generations could last.
Anyway, does anyone remember the name of this exercise as well as the name of the algorithm to do it?
Sounds like Conway’s Game of Life, as for algorithms etcetera, there are plenty of sources out there if you just search for the name.