Predator/Prey Simulation

Premise

Create a simple environment with predators and prey who eat and breed. Both predators and prey reproduce asexually, and it is assumed prey have an infinite food source. However, predators can starve if they go too long without eating. Classic, nostalgic characters were chosen to represent the predators and prey.

To implement this environment, a turtle class was provided by the instructor. With the sprites changed and giving each character a very basic AI, the simulation tends to run fairly smooth. The beginning does rely on random placement and amount, so being unlucky can cause early termination of the program. In the back of the canvas, the population of predators and prey are graphed.