Plant mimic
2015-04-18, post № 19
programming, Pygame, Python, #behavior, #black, #black and white, #growing, #growth, #mimic, #offspring, #plant, #plant behavior, #pseudo random, #random, #root, #roots, #simulation, #white
I was trying to mimic plant root-growth behavior. It all starts with one root, which then has a chance to get offspring (𝟢 to 𝟦). If it gets offspring, the offspring also gets a chance for more offspring. To reduce lag there is a maximum to the currently growing roots (𝟣𝟢𝟢). Due to the random behavior, it is possible for the plant to die at the start or — theoretically — in an advanced state.
Source code: plant-mimic.py