Epidemic Model to use with Puzzle 3

This Epidemic model creates 300 healthy turtles and sets their color to blue, creates 3 sick turtles and sets their color to red, and has the turtles wiggle around the world and transmit the epidemic on collision with a sick turtle.

Your task is to add a new breed of turtles called "doctors" and to give your doctors a new trait -- name it "amount of vaccine" or "energy" or whatever you would like. Then in your program, create 10 doctors, make them wiggle around, and if they collide with a red agent have the red agent turn back to a blue agent (recover).

As an extension, give the doctors a set amount of your new trait as you create them in the setup. Then, in the collision have the doctors lose one unit of that trait. Add a procedure that deletes a doctor if that trait is less than or equal to 0. Be sure to call your procedure in the forever block.

  • 0 (Current Version) View Project History
Engine speed5
Loading...
0%

Loading...