Jonathan. Frech’s WebBlog

Plant mimic (#19)

Jonathan Frech

I was trying to mimic plant root-growth behavior. It all starts with one root, which then has a chance to get offspring (0 to 4). 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 (100). Due to the ran­dom behavior, it is possible for the plant to die at the start or — theoretically — in an advanced state.

Source code: plant-mimic.py