This is a simulation that emulates the spreading of an infectious virus, e.g. the coronavirus. The simulation gives the user the option to tweak a few variables to change the nature of the virus. Due to the inherent randomness, each simulation run may yield different results. The rest is self-explanatory.
I added a slider that allows you to change the population. It may cause major lag problems or some may not spawn, this is solved by restarting twice (of course using the same population). I also strongly recommend using forkphorus if inputting a population over 100. Link: https://forkphorus.github.io/app.html?id=380564592 I added the more realistic effect of hospitals being unable to treat some patients during high demand. - When more then 40% of the population is infected, recovery rates will decrease by 20% and death rates increase by 20% - When more then 55% of the population is infected, hospitals become full. Not even enough event centers fit the number of people infected. Death rates rise by a further 25% and recovery rates decrease by 20% Used more accurate default recovery/death rates commented by @Cathy390 on the original project. Dev Note- The spawning system and graph drawing script are slightly changed to accommodate the increased or decreased population.