Green circle: healthy Green circle with black dot: incubating Red circle: symptomatic Blue circle: immune Cross: illness was fatal Press space to end the simulation and generate the following graphs (values expressed as a proportion of the maximum total population over time). Green line: infected population Red line: known cases Black line: related deaths (accumulated) Blue line: total population
Thankyou to @piano_miles for inspiring this simulation and writing the original sections of code which I have kept/edited/replaced/discarded. If you're like me and seeing a remix makes you think "So, is any of this actually your own work?", I would like to assure you now that a lot of it is. I added all of the interactive variables; sometimes this just meant inserting the variable block into piano-miles' code, but at other times I had to script the new feature myself: - Infection rate. piano_miles effectively had this set permanently at 100%. - Fatality rate. This was also originally 100%. - Infection period. Most people recover from the common cold after a couple of days, while other diseases cause death after many years. The original code was based on probability, not time, and sometimes killed circles within a second of simulation, so I replaced it with my own code. - Latent and incubating periods. In the real world, exploiting these antique provisions may be the only way that you can truly give in secret. In this simulation, they're a recent addition and I just hope I didn't break anything. - Immune survivors. piano_miles didn't need to consider the immunity of survivors because his/her simulated disease was 100% fatal. - Population size and density. You must be scrutinising quite closely if you've read this far. I'm not sure whether to be impressed by your perseverance or terrified that you'll notice all the bugs. - Percent exposed. piano-miles started each simulation with one infected circle. Now, you can start the simulation with ALL of the circles diseased! - Percent immune. Originally set at about 2.5%. - Coronawaltzing. Okay, what happens in this simulation isn't actually the coronawaltz, but I can't think of the right word. All coding for this often crazy phenomenon is mine. Hopefully I've got the bugs sorted out, but I don't feel like looking for them right now. Please do let me know if you find one so I can try to fix it; otherwise, I might introduce vaccinations to the simulation and prevent offspring from inheriting acquired immunity.