Epidemic and Allison, Luke

This is a working version of the epidemic model. It creates 300 healthy (blue) turtles and 4 sick (red) turtles and has them move around Spaceland randomly (with a wiggle). The turtles only turn red on collision if the collidee is red.

To continue the epidemic model, REMIX this model, then:
Create a slider to control the initial population of healthy turtles (with a range of 0-500)
Add a graph to count the blue and red turtles
Create a slider to control the transmission rate (with a range from 0 to 100). Use the transmission slider in the code as the probability of passing on the disease when a turtle collides with a sick turtle.
Create a recovery slider with a range from 0 to 10, and use the recovery slider in the code as the probability that a turtle will recover from the disease at each step (and so become healthy, or blue). Since each turtle has a chance of recovering at each step, this procedure should be called in a forever block, not in the collision block.

Engine speed5
Loading...
0%

Loading...