Bunny Ecosystem

For more information, scroll down to the explanation

What is going on here?

The Idea is to build and simulate a closed ecosystem. Firstly it only contains two types of entities which directly influence how the other one behaves.

The Plants act quite simple. They grow in a random spot and have a certain nutrient-value. This Value can be seen by the yellow bar on the right of every plant.
The plants try to survive no matter what, so the less plants there are alive in the ecosystem, the faster the plants will start to grow. This will on the other hand decrese their nutrients immensly, depending on how fast the plant had to shoot up from the ground.

The bunnies on the other hand are a little more complex. They have 4 urges: 'Sleep', 'Hunger', 'Thirst' and 'Reproduction' aswell as two genders. (This can be determined by the color of the bunny). The urges are displayed under each bunny in form of a bar. The bigger the bar, the better the urge is satified. The red bar stands for hunger, the blue one for thirst and the yellow one for sleep.

If the urges Hunger and Thrist are satisfied, and the Bunny didn't reproduce for a certain time. It will begin to look for a partner. If a partner is in eyesight, the female (white) Bunny will wait for the male and they will birth several children. (How many is based on genes and will change over time).

In the future, it is planned to have more entities (Animals that eat bunnies for example), or genes that will mutate the plants aswell. Another planned change is to show the evolution of the genes in the graph you can see above. I also will add some form of GUI where the user can play with different settings.

Please keep in mind that this project is in a really early state of development and there might be unexpected behaviour. (Bunnies get stuck is a really popluar one...)

If you are interested in the code, you can find it: here

Changelog

25.10.2019

24.10.2019

23.10.2019

22.10.2019