INSTRUCTIONS AND DETAILS Click anywhere to generate a new circle and watch the circles interact. More detail below on how the whole simulation works. Inspired by Conway's Game of Life, but also me just writing pretty much random code to see what happens. I like messing around with code and trying new things, so I created a simple thing that is similar to, but is not, a cellular automaton. The Life simulator begins with 25 cells, or circles, that are all happy. If a happy circle hits another circle, it will back off and become sad. If a sad circle hits another circle, it will also back off but it will become happy. But there is a catch, a twist - any sad circle that has been in the sad state for long enough (usually only a few seconds, up to 5) it will disappear, and will no longer be able to interact with other circles. And if any happy circle has been in the happy state for long enough (also only a few seconds), it will GROW in size, thus helping sad circles nearby stay alive (as there are more interactions). Note that two circles, happy or sad, can help each other stay alive.
Have fun! Remix to make more sped-up or more crazy versions of the 'game', for example making the happy circles shrink instead of grow and the sad ones grow until they turn happy again. There are tons of other crazy rules you can add just by coding! CREDITS All Art and Coding by @CodeBit