This project is a Java-based ecosystem simulator aiming for creating a balanced sheep-wolves ecosystem. From the statistic class, we know that the curves of the wolves-sheep system should have a nearly 180-degree phase difference - a derivative-relationship. Usually, those curves we see are based on statistic result, in other word, a group effect. The purpose of this project is to explore how individual behavior in a group will affect group behavior. Specifically, in this project, I was trying to produce the same sheep-wolves curves by programming the behavior of each sheep or wolf entity. It’s also worth to mention that my friend Tian Gao inspired this project. I build this for fun and for getting familiar with Java programming language, design pattern, and practice with several techniques like multithreading.
The simulator functions correctly, and a sheep-wolves relationship can be seen from the diagram result.