Start the code by pressing the green flag and stop it by pressing the red button. Once you've stopped it, you can change the sliders. Prey (Purple): Death conditions: Hasn't eaten for too long Eaten by predator Overcrowding (bumps into prey too many times) Reproduction conditions: Eaten a plant Predator (Red): Death conditions: Not eaten for too long Reproduction conditions: Eaten prey enough ticks in a row Plant (Green): Death conditions: Eaten by prey Reproduction conditions: Every 10 turns spawns 'SPAWN_PLANTS' times Tick rate slider is in bottom left. What tick you're on is in top right. Set initial conditions in bottom right. See the lists of statistics (the model's data output) by pressing Q and W. Ticks are represented with a '.'. Data shows the amount of prey, predators, total number of creatures, and which tick we are on per tick. 'Speed every day' and 'size every day' shows the speed and size of every prey every tick. 'Speed' and 'size' shows the speed and size of every prey when spawned in. Try out having different kinds of environments! e.g. No predators at the beginning; Fewer plants spawning! If you want to analyse each tick maybe make the tick rate slider in the bottom left a bit slower. You can look at the code and import/export lists (output data of the model) by going on 'See Inside' (the purple button top left). If you go inside the code, you can import and export lists by clicking Q and then right clicking the lists on screen.
-I thought of this project on my own in half term. -It took me 1 day to code this. -Hope you enjoy. v0 - released the game lol