Evolution
I don’t know the exact date for this one. It predates the earliest commit of this git repository because it was written in some previous framework originally. I thought that it was inspired by reading about the behavior of gannets while on vacation, but it seems that the video I have of that is in August of 2019 and this module definitely existed before that.
I know that this module was built around the same time I wrote a rant about some infinite simulation theory - the idea that we make simulations and we’re in a simulation and our creator is also in a simulation and their creator, ad infinitum.
The balls (called Things in the code) have red, green, and blue attributes that are initially randomly selected. Each Thing also has a true/false property called canHaveBaby. When a Thing that can have a baby and a Thing that cannot have a baby are on the same square, then a baby will be generated in the Thing that can have one. The properties of red, green, and blue are inherited randomly from the parents.
The trouble with this simulation of evolution is that there is no environment that provides advantage or disadvantage to any value for the three colors.
The width of the module is trying to be larger than the width of the box.
Click the app to start. Then click to pause/unpause.