1. Click green flag. 2. Adjust the sliders given to the levels you want. (See below.) 3. Press right arrow to begin the simulation. Press space to toggle between hiding/unhiding the sliders on the left. 4. Observe the simulation. Each pop sound is one fatality. What each color means: Orange: susceptible; neither ill nor immune Green: ill Blue: immune Not present: dead I am aware that this project still has a few minor bugs. I do not mind if you comment bugs that have not yet been reported.
What each slider changes: POPULATION_SIZE: number of individuals in population INFECTION_RADIUS: proximity to ill person required in order to become ill (changes individual size) CONTAGIOUSNESS: percent chance of getting virus if in proximity of ill person MIN_DEATH_TIME: minimum length of time it takes to die after getting virus, if death will occur MAX_DEATH_TIME: maximum length of time it takes to die after getting virus, if death will occur RECOVERY_CHANCE: percent chance of becoming immune after getting virus MIN_RECOVERY_TIME: minimum length of time it takes to recover after getting virus, if recovery will occur MAX_RECOVERY_TIME: maximum length of time it takes to recover after getting virus, if recovery will occur IMMUNITY_CHANCE: percent chance of becoming immune after getting virus, if alive All of the code for this project was created by Dinosu.