;;;;;;;;;;;;;;;;;; ;; Declarations ;; ;;;;;;;;;;;;;;;;;; globals [ ;; number of turtles that are sick num-sick ;; when multiple runs are recorded in the plot, this ;; tracks what run number we're on run-number ;; counter used to keep the model running for a little ;; while after the last turtle gets infected adelay trail_count total_ticks_sick total_ticks_sick01 total_ticks_sick02 total_ticks_sick03 our_total_ticks_sick max_ticks_sick ] breed [ androids android ] breed [ users user ] ;; androids and users are both breeds of turtle, so both androids ;; and users have these variables turtles-own [ infected? ;; whether turtle is sick (true/false) tick_sick ;; when got sick frac_sick ;; fraction sick when got sick tick_sick01 frac_sick01 tick_sick02 frac_sick02 tick_sick03 frac_sick03 my_tick_sick my_frac_sick ] ;;;;;;;;;;;;;;;;;;;;; ;; Setup Functions ;; ;;;;;;;;;;;;;;;;;;;;; ;; clears the plot too to setup-clear clear-all set run-number 1 setup-world set adelay 0 end ;; note that the plot is not cleared so that data ;; can be collected across runs to setup-keep ;;clear-turtles clear-patches set run-number run-number + 1 set adelay 0 ask androids [ set shape "android" set color gray setxy random-pxcor random-pycor ;; put androids on patch centers set color gray set heading 90 * random 4 set infected? false ] ask users [set shape "person" set color 95 set infected? false] set num-sick 0 set adelay 0 set trail_count 0 reset-ticks setup-plot do-plot cd end to setup-world set-default-shape androids "android" set-default-shape users "person" set num-sick 0 set adelay 0 set trail_count 0 reset-ticks create-some-androids create-user setup-plot do-plot end to infect ask one-of androids [ get-sick ] end to create-some-androids create-androids num-androids [ setxy random-pxcor random-pycor ;; put androids on patch centers set color gray set heading 90 * random 4 set infected? false ] end ;;;;;;;;;;;;;;;;;;;;;;; ;; Runtime Functions ;; ;;;;;;;;;;;;;;;;;;;;;;; to go ;; in order to extend the plot for a little while ;; after all the turtles are infected... if num-sick = count turtles [ set adelay adelay + 1 ] if adelay > 2000 [ stop ] ;; set trail_count trail_count + 1 ;;if trail_count > trail_length [cd set trail_count 0] ;; now for the main stuff; ;; we use EVERY to keep the activity from running too fast every 0.1 [ ifelse trail_on = true [ set trail_count trail_count + 1 ask turtles [pd] if trail_count > trail_length [cd set trail_count 0] ] [ set trail_count 0 ask turtles [pu] cd ] androids-wander ask turtles with [ infected? ] [ spread-disease ] set num-sick count turtles with [ infected? ] tick do-plot ] end ;; controls the motion of the androids to androids-wander ;;ask androids ;;[ ;; ifelse avoid? and not infected? ;; [ avoid ] [ ;; ifelse chase? and infected? ;; [ chase ] ;; [ rt (random 4) * 90 ] ] ;; ] ask androids [ fd 1 rt random 90 - 45 ] end to avoid ;; android procedure let candidates patches in-radius 1 with [ not any? turtles-here with [ infected? ] ] ifelse any? candidates [ face one-of candidates ] [ rt (random 4) * 90 ] end to chase ;; android procedure let candidates turtles in-radius 1 with [ not infected? ] ifelse any? candidates [ face one-of candidates ] [ rt (random 4) * 90 ] end to spread-disease ;; turtle procedure ask other turtles-here [ maybe-get-sick ] end to maybe-get-sick ;; turtle procedure ;; roll the dice and maybe get sick ifelse num-sick < count turtles - 1 [if (not infected?) and (random 100 < infection-chance) [ ifelse use_profile? and (random 1000 < int (1000 * (1 - my_frac_sick))) [get-sick] [get-sick] ] ] [if (not infected?) and (random 100 < infection-chance) [ ifelse use_profile? and (random 1000 < int (1000 * (1 - my_frac_sick) + 50)) [get-sick] [get-sick] ] ] end ;; set the appropriate variables to make this turtle sick to get-sick ;; turtle procedure if not infected? [ set infected? true set shape word shape " sick" set color red set tick_sick ticks set frac_sick (count turtles with [infected?]) / count turtles] ask users [ if infected? [set shape "person sick" set color red]] end ;;;;;;;;;;;;;;;;;;;;; ;; User Procedures ;; ;;;;;;;;;;;;;;;;;;;;; to create-user create-users 1 [ set color sky set size 1.5 ;; easier to see than default of 1 set heading (random 4) * 90 set infected? false ] end to move [ new-heading ] ask users [ set heading new-heading fd step-size ] end ;;;;;;;;;;;;;;;;;;;;;;;;; ;; Plotting Procedures ;; ;;;;;;;;;;;;;;;;;;;;;;;;; to setup-plot create-temporary-plot-pen word "run " run-number set-plot-pen-color item (run-number mod 5) [blue red green orange violet] end to do-plot plot num-sick end ; *** NetLogo 4.0.4 Model Copyright Notice *** ; ; Copyright 2005 by Uri Wilensky. All rights reserved. ; ; Permission to use, modify or redistribute this model is hereby granted, ; provided that both of the following requirements are followed: ; a) this copyright notice is included. ; b) this model will not be redistributed for profit without permission ; from Uri Wilensky. ; Contact Uri Wilensky for appropriate licenses for redistribution for ; profit. ; ; To refer to this model in academic publications, please use: ; Wilensky, U. (2005). NetLogo Disease Solo model. ; http://ccl.northwestern.edu/netlogo/models/DiseaseSolo. ; Center for Connected Learning and Computer-Based Modeling, ; Northwestern University, Evanston, IL. ; ; In other publications, please use: ; Copyright 2005 Uri Wilensky. All rights reserved. ; See http://ccl.northwestern.edu/netlogo/models/DiseaseSolo ; for terms of use. ; ; *** End of NetLogo 4.0.4 Model Copyright Notice *** @#$#@#$#@ GRAPHICS-WINDOW 248 10 573 416 10 12 15.0 1 10 1 1 1 0 0 0 1 -10 10 -12 12 1 1 1 ticks CC-WINDOW 5 466 1095 561 Command Center 0 BUTTON 151 10 236 43 setup/clear setup-clear NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 10 114 237 147 NIL go T 1 T OBSERVER NIL NIL NIL NIL SLIDER 12 150 167 183 infection-chance infection-chance 0 100 50 1 1 % HORIZONTAL PLOT 7 239 237 416 Number Sick time sick 0.0 10.0 0.0 6.0 true false PENS "default" 1.0 0 -16777216 true SLIDER 12 10 147 43 num-androids num-androids 1 300 80 1 1 NIL HORIZONTAL MONITOR 12 188 102 233 Number Sick num-sick 0 1 11 BUTTON 614 61 683 94 up move 0 NIL 1 T OBSERVER NIL I NIL NIL BUTTON 654 94 717 127 right move 90 NIL 1 T OBSERVER NIL L NIL NIL BUTTON 584 94 646 127 left move 270 NIL 1 T OBSERVER NIL J NIL NIL BUTTON 615 126 684 159 down move 180 NIL 1 T OBSERVER NIL K NIL NIL SWITCH 595 337 698 370 avoid? avoid? 1 1 -1000 SWITCH 595 373 698 406 chase? chase? 1 1 -1000 TEXTBOX 583 34 733 52 person: 11 0.0 0 TEXTBOX 591 313 741 331 androids: 11 0.0 0 BUTTON 12 75 131 108 setup/keep setup-keep NIL 1 T OBSERVER NIL NIL NIL NIL TEXTBOX 17 52 243 70 keeps current agents and old plots 11 0.0 0 SLIDER 577 164 726 197 step-size step-size 1 5 1 1 1 NIL HORIZONTAL BUTTON 134 74 236 107 NIL infect NIL 1 T OBSERVER NIL NIL NIL NIL SLIDER 591 273 697 306 trail_length trail_length 0 200 50 5 1 NIL HORIZONTAL SWITCH 591 237 681 270 trail_on trail_on 0 1 -1000 BUTTON 942 50 1085 83 move to current values \nset total_ticks_sick ticks\nif max_time_ticks < total_ticks_sick [set max_time_ticks total_ticks_sick]\n\nask turtles \n[\n\nsetxy (((tick_sick / max_time_ticks) * (max-pxcor)) - horizontal_offset) ((frac_sick * max-pycor) - vertical_offset)\n] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 796 50 937 83 NIL cd NIL 1 T OBSERVER NIL NIL NIL NIL SLIDER 795 313 967 346 vertical_offset vertical_offset 0 max-pycor 0 1 1 NIL HORIZONTAL BUTTON 796 90 938 123 current -> profile set max_ticks_sick total_ticks_sick\n \nask turtles [ \n set my_tick_sick tick_sick \n set my_frac_sick frac_sick\n ] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 794 167 936 200 current -> Test 01 set total_ticks_sick02 total_ticks_sick\n \nask turtles [ \n set tick_sick01 tick_sick\n set frac_sick01 frac_sick\n ] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 793 202 936 235 current -> Test 02 set total_ticks_sick02 total_ticks_sick\n \nask turtles [ \n set tick_sick02 tick_sick\n set frac_sick02 frac_sick\n ] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 793 237 937 270 current -> Test 03 set total_ticks_sick03 total_ticks_sick\n \nask turtles [ \n set tick_sick03 tick_sick\n set frac_sick03 frac_sick\n ] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 942 89 1085 122 move to profile \nif max_time_ticks < our_total_ticks_sick [set max_time_ticks our_total_ticks_sick]\n \nask turtles \n[\nsetxy (((my_tick_sick / max_time_ticks) * (max-pxcor)) - horizontal_offset) ((my_frac_sick * max-pycor) - vertical_offset)\n\n] NIL 1 T OBSERVER NIL NIL NIL NIL SLIDER 794 14 1086 47 max_time_ticks max_time_ticks 1 400 250 1 1 NIL HORIZONTAL SLIDER 795 276 967 309 horizontal_offset horizontal_offset 0 max-pxcor 0 1 1 NIL HORIZONTAL BUTTON 940 167 1083 200 move to Test 01 \nif max_time_ticks < total_ticks_sick01 [set max_time_ticks total_ticks_sick01]\n \nask turtles \n[\nsetxy (((tick_sick01 / max_time_ticks) * (max-pxcor)) - horizontal_offset) ((frac_sick01 * max-pycor) - vertical_offset)\n\n] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 941 202 1082 235 move to Test 02 \nif max_time_ticks < total_ticks_sick02 [set max_time_ticks total_ticks_sick02]\n \nask turtles \n[\nsetxy (((tick_sick02 / max_time_ticks) * (max-pxcor)) - horizontal_offset) ((frac_sick02 * max-pycor) - vertical_offset)\n\n] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 940 237 1083 270 move to Test 03 \nif max_time_ticks < total_ticks_sick03 [set max_time_ticks total_ticks_sick03]\n \nask turtles \n[\nsetxy (((tick_sick03 / max_time_ticks) * (max-pxcor)) - horizontal_offset) ((frac_sick03 * max-pycor) - vertical_offset)\n\n] NIL 1 T OBSERVER NIL NIL NIL NIL SWITCH 107 192 239 225 use_profile? use_profile? 1 1 -1000 MONITOR 942 124 1085 169 results_for_high_profile mean [frac_sick] of turtles with [my_frac_sick > .8] 2 1 11 MONITOR 799 124 939 169 results for low profile mean [frac_sick] of turtles with [my_frac_sick < .2 and my_frac_sick != 0] 2 1 11 BUTTON 795 354 893 387 user green ask users [set shape \"person\" set color green] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 896 354 1043 387 androids random colors ask androids [set shape \"android\" set color random 1000] NIL 1 T OBSERVER NIL NIL NIL NIL BUTTON 974 274 1064 307 stretch-h set xcor xcor * 1.1 NIL 1 T TURTLE NIL NIL NIL NIL BUTTON 6 419 237 452 NIL clear-all-plots NIL 1 T OBSERVER NIL NIL NIL NIL @#$#@#$#@ WHAT IS IT? ----------- Disease Solo is a one-player version of the HubNet activity Disease. It simulates the spread of a disease through a population. One agent in the population is a person controlled by the user; the others are "androids" controlled by the computer. HOW IT WORKS ------------ The user controls the blue agent via the buttons and slider on the right side of the view. The infection is started by pressing the "infect" button. Sick agents are indicated by a red circle. Androids can move using a few different simple strategies. By default they simply move randomly, however, using the AVOID? and CHASE? switches you can indicate that uninfected androids should run from infected ones or infected androids should chase uninfected ones. The person may also catch the infection. Healthy "agents" on the same patch as sick agents have an INFECTION-CHANCE chance of becoming ill. HOW TO USE IT ------------- Buttons: -------- SETUP/CLEAR - sets up the world and clears plots. SETUP/KEEP - sets up the world without clearing the plot; this lets you compare results from different runs. GO - runs the simulation. INFECT - infects one of the androids Sliders: -------- NUM-ANDROIDS - determines how many androids are created at setup INFECTION-CHANCE - a healthy agent's chance at every time step to become sick if it is on the same patch as an infected agent Monitors: --------- NUMBER SICK - the number of sick agents Plots: ------ NUMBER SICK - the number of sick agents versus time Switches: --------- AVOID? - when this switch is on each uninfected android checks all four directions to see if it can move to a patch that is safe from infected agents. CHASE? - when this switch is on each infected androids checks all four directions to see if it can infect another agent. User Controls: -------------- UP, DOWN, LEFT, and RIGHT - move the person around the world, STEP-SIZE determines how far the person moves each time one of the control buttons is pressed. THINGS TO NOTICE ---------------- Think about how the plot will change if you alter a parameter. Altering the infection chance will have different effects on the plot. THINGS TO TRY ------------- Do several runs of the model and record a data set for each one by using the setup/keep button. Compare the different resulting plots. What happens to the plot as you do runs with more and more androids? EXTENDING THE MODEL ------------------- Currently, the agents remain sick once they're infected. How would the shape of the plot change if agents eventually healed? If, after healing, they were immune to the disease, or could still spread the disease, how would the dynamics be altered? The user has a distinct advantage in this version of the model (assuming that the goal is either not to become infected, or to infect others), as the user can see the entire world and the androids can only see one patch ahead of them. Try to even out the playing field by giving the androids a larger field of vision. Determining the first agent who is infected may impact the way disease spreads through the population. Try changing the target of the first infection so it can be determined by the user. NETLOGO FEATURES ---------------- You can use the keyboard to control the person. To activate the keyboard shortcuts for the movement button, either hide the command center or click in the white background. The plot uses temporary plot pens, rather than a fixed set of permanent plot pens, so you can use the setup/keep button to overlay as many runs as you want. RELATED MODELS -------------- Disease (HubNet version) Virus AIDS CREDITS AND REFERENCES ---------------------- This model is a one player version of the HubNet activity Disease. In the HubNet version, multiple users can participate at once. To refer to this model in academic publications, please use: Wilensky, U. (2005). NetLogo Disease Solo model. http://ccl.northwestern.edu/netlogo/models/DiseaseSolo. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL. In other publications, please use: Copyright 2005 Uri Wilensky. All rights reserved. See http://ccl.northwestern.edu/netlogo/models/DiseaseSolo for terms of use. @#$#@#$#@ default true 0 Polygon -7500403 true true 150 5 40 250 150 205 260 250 airplane true 0 Polygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15 airplane sick false 0 Polygon -7500403 true true 150 0 135 15 120 60 120 105 15 165 15 195 120 180 135 240 105 270 120 285 150 270 180 285 210 270 165 240 180 180 285 195 285 165 180 105 180 60 165 15 Circle -2674135 true false 156 156 108 android false 0 Polygon -7500403 true true 210 90 240 195 210 210 165 90 Circle -7500403 true true 110 3 80 Polygon -7500403 true true 105 88 120 193 105 240 105 298 135 300 150 210 165 300 195 298 195 240 180 193 195 88 Rectangle -7500403 true true 127 81 172 96 Rectangle -16777216 true false 135 33 165 60 Polygon -7500403 true true 90 90 60 195 90 210 135 90 android sick false 0 Polygon -7500403 true true 210 90 240 195 210 210 165 90 Circle -7500403 true true 110 3 80 Polygon -7500403 true true 105 88 120 193 105 240 105 298 135 300 150 210 165 300 195 298 195 240 180 193 195 88 Rectangle -7500403 true true 127 81 172 96 Rectangle -16777216 true false 135 33 165 60 Polygon -7500403 true true 90 90 60 195 90 210 135 90 Circle -2674135 true false 150 120 120 arrow true 0 Polygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150 box false 0 Polygon -7500403 true true 150 285 285 225 285 75 150 135 Polygon -7500403 true true 150 135 15 75 150 15 285 75 Polygon -7500403 true true 15 75 15 225 150 285 150 135 Line -16777216 false 150 285 150 135 Line -16777216 false 150 135 15 75 Line -16777216 false 150 135 285 75 box sick false 0 Polygon -7500403 true true 150 285 270 225 270 90 150 150 Polygon -7500403 true true 150 150 30 90 150 30 270 90 Polygon -7500403 true true 30 90 30 225 150 285 150 150 Line -16777216 false 150 285 150 150 Line -16777216 false 150 150 30 90 Line -16777216 false 150 150 270 90 Circle -2674135 true false 170 178 108 bug true 0 Circle -7500403 true true 96 182 108 Circle -7500403 true true 110 127 80 Circle -7500403 true true 110 75 80 Line -7500403 true 150 100 80 30 Line -7500403 true 150 100 220 30 butterfly true 0 Polygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240 Polygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240 Polygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163 Polygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165 Polygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225 Circle -16777216 true false 135 90 30 Line -16777216 false 150 105 195 60 Line -16777216 false 150 105 105 60 butterfly sick false 0 Rectangle -7500403 true true 92 135 207 224 Circle -7500403 true true 158 53 134 Circle -7500403 true true 165 180 90 Circle -7500403 true true 45 180 90 Circle -7500403 true true 8 53 134 Line -16777216 false 43 189 253 189 Rectangle -7500403 true true 135 60 165 285 Circle -7500403 true true 165 15 30 Circle -7500403 true true 105 15 30 Line -7500403 true 120 30 135 60 Line -7500403 true 165 60 180 30 Line -16777216 false 135 60 135 285 Line -16777216 false 165 285 165 60 Circle -2674135 true false 156 171 108 cactus false 0 Rectangle -7500403 true true 135 30 175 177 Rectangle -7500403 true true 67 105 100 214 Rectangle -7500403 true true 217 89 251 167 Rectangle -7500403 true true 157 151 220 185 Rectangle -7500403 true true 94 189 148 233 Rectangle -7500403 true true 135 162 184 297 Circle -7500403 true true 219 76 28 Circle -7500403 true true 138 7 34 Circle -7500403 true true 67 93 30 Circle -7500403 true true 201 145 40 Circle -7500403 true true 69 193 40 cactus sick false 0 Rectangle -7500403 true true 135 30 175 177 Rectangle -7500403 true true 67 105 100 214 Rectangle -7500403 true true 217 89 251 167 Rectangle -7500403 true true 157 151 220 185 Rectangle -7500403 true true 94 189 148 233 Rectangle -7500403 true true 135 162 184 297 Circle -7500403 true true 219 76 28 Circle -7500403 true true 138 7 34 Circle -7500403 true true 67 93 30 Circle -7500403 true true 201 145 40 Circle -7500403 true true 69 193 40 Circle -2674135 true false 156 171 108 car false 0 Polygon -7500403 true true 300 180 279 164 261 144 240 135 226 132 213 106 203 84 185 63 159 50 135 50 75 60 0 150 0 165 0 225 300 225 300 180 Circle -16777216 true false 180 180 90 Circle -16777216 true false 30 180 90 Polygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89 Circle -7500403 true true 47 195 58 Circle -7500403 true true 195 195 58 car sick false 0 Polygon -7500403 true true 285 208 285 178 279 164 261 144 240 135 226 132 213 106 199 84 171 68 149 68 129 68 75 75 15 150 15 165 15 225 285 225 283 174 283 176 Circle -16777216 true false 180 180 90 Circle -16777216 true false 30 180 90 Polygon -16777216 true false 195 90 135 90 135 135 210 135 195 105 165 90 Circle -7500403 true true 47 195 58 Circle -7500403 true true 195 195 58 Circle -2674135 true false 171 156 108 cat false 0 Line -7500403 true 285 240 210 240 Line -7500403 true 195 300 165 255 Line -7500403 true 15 240 90 240 Line -7500403 true 285 285 195 240 Line -7500403 true 105 300 135 255 Line -16777216 false 150 270 150 285 Line -16777216 false 15 75 15 120 Polygon -7500403 true true 300 15 285 30 255 30 225 75 195 60 255 15 Polygon -7500403 true true 285 135 210 135 180 150 180 45 285 90 Polygon -7500403 true true 120 45 120 210 180 210 180 45 Polygon -7500403 true true 180 195 165 300 240 285 255 225 285 195 Polygon -7500403 true true 180 225 195 285 165 300 150 300 150 255 165 225 Polygon -7500403 true true 195 195 195 165 225 150 255 135 285 135 285 195 Polygon -7500403 true true 15 135 90 135 120 150 120 45 15 90 Polygon -7500403 true true 120 195 135 300 60 285 45 225 15 195 Polygon -7500403 true true 120 225 105 285 135 300 150 300 150 255 135 225 Polygon -7500403 true true 105 195 105 165 75 150 45 135 15 135 15 195 Polygon -7500403 true true 285 120 270 90 285 15 300 15 Line -7500403 true 15 285 105 240 Polygon -7500403 true true 15 120 30 90 15 15 0 15 Polygon -7500403 true true 0 15 15 30 45 30 75 75 105 60 45 15 Line -16777216 false 164 262 209 262 Line -16777216 false 223 231 208 261 Line -16777216 false 136 262 91 262 Line -16777216 false 77 231 92 261 cat sick false 0 Line -7500403 true 285 240 210 240 Line -7500403 true 195 300 165 255 Line -7500403 true 15 240 90 240 Line -7500403 true 285 285 195 240 Line -7500403 true 105 300 135 255 Line -16777216 false 150 270 150 285 Line -16777216 false 15 75 15 120 Polygon -7500403 true true 300 15 285 30 255 30 225 75 195 60 255 15 Polygon -7500403 true true 285 135 210 135 180 150 180 45 285 90 Polygon -7500403 true true 120 45 120 210 180 210 180 45 Polygon -7500403 true true 180 195 165 300 240 285 255 225 285 195 Polygon -7500403 true true 180 225 195 285 165 300 150 300 150 255 165 225 Polygon -7500403 true true 195 195 195 165 225 150 255 135 285 135 285 195 Polygon -7500403 true true 15 135 90 135 120 150 120 45 15 90 Polygon -7500403 true true 120 195 135 300 60 285 45 225 15 195 Polygon -7500403 true true 120 225 105 285 135 300 150 300 150 255 135 225 Polygon -7500403 true true 105 195 105 165 75 150 45 135 15 135 15 195 Polygon -7500403 true true 285 120 270 90 285 15 300 15 Line -7500403 true 15 285 105 240 Polygon -7500403 true true 15 120 30 90 15 15 0 15 Polygon -7500403 true true 0 15 15 30 45 30 75 75 105 60 45 15 Line -16777216 false 164 262 209 262 Line -16777216 false 223 231 208 261 Line -16777216 false 136 262 91 262 Line -16777216 false 77 231 92 261 Circle -2674135 true false 186 186 108 circle false 0 Circle -7500403 true true 0 0 300 circle 2 false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 cow false 0 Polygon -7500403 true true 200 193 197 249 179 249 177 196 166 187 140 189 93 191 78 179 72 211 49 209 48 181 37 149 25 120 25 89 45 72 103 84 179 75 198 76 252 64 272 81 293 103 285 121 255 121 242 118 224 167 Polygon -7500403 true true 73 210 86 251 62 249 48 208 Polygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123 cow skull false 0 Polygon -7500403 true true 150 90 75 105 60 150 75 210 105 285 195 285 225 210 240 150 225 105 Polygon -16777216 true false 150 150 90 195 90 150 Polygon -16777216 true false 150 150 210 195 210 150 Polygon -16777216 true false 105 285 135 270 150 285 165 270 195 285 Polygon -7500403 true true 240 150 263 143 278 126 287 102 287 79 280 53 273 38 261 25 246 15 227 8 241 26 253 46 258 68 257 96 246 116 229 126 Polygon -7500403 true true 60 150 37 143 22 126 13 102 13 79 20 53 27 38 39 25 54 15 73 8 59 26 47 46 42 68 43 96 54 116 71 126 cow skull sick false 0 Polygon -7500403 true true 150 90 75 105 60 150 75 210 105 285 195 285 225 210 240 150 225 105 Polygon -16777216 true false 150 150 90 195 90 150 Polygon -16777216 true false 150 150 210 195 210 150 Polygon -16777216 true false 105 285 135 270 150 285 165 270 195 285 Polygon -7500403 true true 240 150 263 143 278 126 287 102 287 79 280 53 273 38 261 25 246 15 227 8 241 26 253 46 258 68 257 96 246 116 229 126 Polygon -7500403 true true 60 150 37 143 22 126 13 102 13 79 20 53 27 38 39 25 54 15 73 8 59 26 47 46 42 68 43 96 54 116 71 126 Circle -2674135 true false 156 186 108 cylinder false 0 Circle -7500403 true true 0 0 300 dog false 0 Polygon -7500403 true true 300 165 300 195 270 210 183 204 180 240 165 270 165 300 120 300 0 240 45 165 75 90 75 45 105 15 135 45 165 45 180 15 225 15 255 30 225 30 210 60 225 90 225 105 Polygon -16777216 true false 0 240 120 300 165 300 165 285 120 285 10 221 Line -16777216 false 210 60 180 45 Line -16777216 false 90 45 90 90 Line -16777216 false 90 90 105 105 Line -16777216 false 105 105 135 60 Line -16777216 false 90 45 135 60 Line -16777216 false 135 60 135 45 Line -16777216 false 181 203 151 203 Line -16777216 false 150 201 105 171 Circle -16777216 true false 171 88 34 Circle -16777216 false false 261 162 30 dog sick false 0 Polygon -7500403 true true 300 165 300 195 270 210 183 204 180 240 165 270 165 300 120 300 0 240 45 165 75 90 75 45 105 15 135 45 165 45 180 15 225 15 255 30 225 30 210 60 225 90 225 105 Polygon -16777216 true false 0 240 120 300 165 300 165 285 120 285 10 221 Line -16777216 false 210 60 180 45 Line -16777216 false 90 45 90 90 Line -16777216 false 90 90 105 105 Line -16777216 false 105 105 135 60 Line -16777216 false 90 45 135 60 Line -16777216 false 135 60 135 45 Line -16777216 false 181 203 151 203 Line -16777216 false 150 201 105 171 Circle -16777216 true false 171 88 34 Circle -16777216 false false 261 162 30 Circle -2674135 true false 126 186 108 dot false 0 Circle -7500403 true true 90 90 120 face happy false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 255 90 239 62 213 47 191 67 179 90 203 109 218 150 225 192 218 210 203 227 181 251 194 236 217 212 240 face neutral false 0 Circle -7500403 true true 8 7 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Rectangle -16777216 true false 60 195 240 225 face sad false 0 Circle -7500403 true true 8 8 285 Circle -16777216 true false 60 75 60 Circle -16777216 true false 180 75 60 Polygon -16777216 true false 150 168 90 184 62 210 47 232 67 244 90 220 109 205 150 198 192 205 210 220 227 242 251 229 236 206 212 183 fish false 0 Polygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166 Polygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165 Polygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60 Polygon -7500403 true true 30 136 151 77 226 81 280 119 292 146 292 160 287 170 270 195 195 210 151 212 30 166 Circle -16777216 true false 215 106 30 flag false 0 Rectangle -7500403 true true 60 15 75 300 Polygon -7500403 true true 90 150 270 90 90 30 Line -7500403 true 75 135 90 135 Line -7500403 true 75 45 90 45 flower false 0 Polygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135 Circle -7500403 true true 85 132 38 Circle -7500403 true true 130 147 38 Circle -7500403 true true 192 85 38 Circle -7500403 true true 85 40 38 Circle -7500403 true true 177 40 38 Circle -7500403 true true 177 132 38 Circle -7500403 true true 70 85 38 Circle -7500403 true true 130 25 38 Circle -7500403 true true 96 51 108 Circle -16777216 true false 113 68 74 Polygon -10899396 true false 189 233 219 188 249 173 279 188 234 218 Polygon -10899396 true false 180 255 150 210 105 210 75 240 135 240 ghost false 0 Polygon -7500403 true true 30 165 13 164 -2 149 0 135 -2 119 0 105 15 75 30 75 58 104 43 119 43 134 58 134 73 134 88 104 73 44 78 14 103 -1 193 -1 223 29 208 89 208 119 238 134 253 119 240 105 238 89 240 75 255 60 270 60 283 74 300 90 298 104 298 119 300 135 285 135 285 150 268 164 238 179 208 164 208 194 238 209 253 224 268 239 268 269 238 299 178 299 148 284 103 269 58 284 43 299 58 269 103 254 148 254 193 254 163 239 118 209 88 179 73 179 58 164 Line -16777216 false 189 253 215 253 Circle -16777216 true false 102 30 30 Polygon -16777216 true false 165 105 135 105 120 120 105 105 135 75 165 75 195 105 180 120 Circle -16777216 true false 160 30 30 ghost sick false 0 Polygon -7500403 true true 30 165 13 164 -2 149 0 135 -2 119 0 105 15 75 30 75 58 104 43 119 43 134 58 134 73 134 88 104 73 44 78 14 103 -1 193 -1 223 29 208 89 208 119 238 134 253 119 240 105 238 89 240 75 255 60 270 60 283 74 300 90 298 104 298 119 300 135 285 135 285 150 268 164 238 179 208 164 208 194 238 209 253 224 268 239 268 269 238 299 178 299 148 284 103 269 58 284 43 299 58 269 103 254 148 254 193 254 163 239 118 209 88 179 73 179 58 164 Line -16777216 false 189 253 215 253 Circle -16777216 true false 102 30 30 Polygon -16777216 true false 165 105 135 105 120 120 105 105 135 75 165 75 195 105 180 120 Circle -16777216 true false 160 30 30 Circle -2674135 true false 156 171 108 heart false 0 Circle -7500403 true true 152 19 134 Polygon -7500403 true true 150 105 240 105 270 135 150 270 Polygon -7500403 true true 150 105 60 105 30 135 150 270 Line -7500403 true 150 270 150 135 Rectangle -7500403 true true 135 90 180 135 Circle -7500403 true true 14 19 134 heart sick false 0 Circle -7500403 true true 152 19 134 Polygon -7500403 true true 150 105 240 105 270 135 150 270 Polygon -7500403 true true 150 105 60 105 30 135 150 270 Line -7500403 true 150 270 150 135 Rectangle -7500403 true true 135 90 180 135 Circle -7500403 true true 14 19 134 Circle -2674135 true false 171 156 108 house false 0 Rectangle -7500403 true true 45 120 255 285 Rectangle -16777216 true false 120 210 180 285 Polygon -7500403 true true 15 120 150 15 285 120 Line -16777216 false 30 120 270 120 key false 0 Rectangle -7500403 true true 90 120 300 150 Rectangle -7500403 true true 270 135 300 195 Rectangle -7500403 true true 195 135 225 195 Circle -7500403 true true 0 60 150 Circle -16777216 true false 30 90 90 key sick false 0 Rectangle -7500403 true true 90 120 300 150 Rectangle -7500403 true true 270 135 300 195 Rectangle -7500403 true true 195 135 225 195 Circle -7500403 true true 0 60 150 Circle -16777216 true false 30 90 90 Circle -2674135 true false 156 171 108 leaf false 0 Polygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195 leaf sick false 0 Polygon -7500403 true true 150 210 135 195 120 210 60 210 30 195 60 180 60 165 15 135 30 120 15 105 40 104 45 90 60 90 90 105 105 120 120 120 105 60 120 60 135 30 150 15 165 30 180 60 195 60 180 120 195 120 210 105 240 90 255 90 263 104 285 105 270 120 285 135 240 165 240 180 270 195 240 210 180 210 165 195 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195 Circle -2674135 true false 141 171 108 line true 0 Line -7500403 true 150 0 150 300 line half true 0 Line -7500403 true 150 0 150 150 monster false 0 Polygon -7500403 true true 75 150 90 195 210 195 225 150 255 120 255 45 180 0 120 0 45 45 45 120 Circle -16777216 true false 165 60 60 Circle -16777216 true false 75 60 60 Polygon -7500403 true true 225 150 285 195 285 285 255 300 255 210 180 165 Polygon -7500403 true true 75 150 15 195 15 285 45 300 45 210 120 165 Polygon -7500403 true true 210 210 225 285 195 285 165 165 Polygon -7500403 true true 90 210 75 285 105 285 135 165 Rectangle -7500403 true true 135 165 165 270 monster sick false 0 Polygon -7500403 true true 75 150 90 195 210 195 225 150 255 120 255 45 180 0 120 0 45 45 45 120 Circle -16777216 true false 165 60 60 Circle -16777216 true false 75 60 60 Polygon -7500403 true true 225 150 285 195 285 285 255 300 255 210 180 165 Polygon -7500403 true true 75 150 15 195 15 285 45 300 45 210 120 165 Polygon -7500403 true true 210 210 225 285 195 285 165 165 Polygon -7500403 true true 90 210 75 285 105 285 135 165 Rectangle -7500403 true true 135 165 165 270 Circle -2674135 true false 141 141 108 moon false 0 Polygon -7500403 true true 175 7 83 36 25 108 27 186 79 250 134 271 205 274 281 239 207 233 152 216 113 185 104 132 110 77 132 51 moon sick false 0 Polygon -7500403 true true 160 7 68 36 10 108 12 186 64 250 119 271 190 274 266 239 192 233 137 216 98 185 89 132 95 77 117 51 Circle -2674135 true false 171 171 108 pentagon false 0 Polygon -7500403 true true 150 15 15 120 60 285 240 285 285 120 person false 0 Circle -7500403 true true 110 5 80 Polygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Rectangle -7500403 true true 127 79 172 94 Polygon -7500403 true true 195 90 240 150 225 180 165 105 Polygon -7500403 true true 105 90 60 150 75 180 135 105 person sick false 0 Circle -7500403 true true 110 5 80 Polygon -7500403 true true 105 90 120 195 90 285 105 300 135 300 150 225 165 300 195 300 210 285 180 195 195 90 Rectangle -7500403 true true 127 79 172 94 Polygon -7500403 true true 195 90 240 150 225 180 165 105 Polygon -7500403 true true 105 90 60 150 75 180 135 105 Circle -2674135 true false 178 163 95 plant false 0 Rectangle -7500403 true true 135 90 165 300 Polygon -7500403 true true 135 255 90 210 45 195 75 255 135 285 Polygon -7500403 true true 165 255 210 210 255 195 225 255 165 285 Polygon -7500403 true true 135 180 90 135 45 120 75 180 135 210 Polygon -7500403 true true 165 180 165 210 225 180 255 120 210 135 Polygon -7500403 true true 135 105 90 60 45 45 75 105 135 135 Polygon -7500403 true true 165 105 165 135 225 105 255 45 210 60 Polygon -7500403 true true 135 90 120 45 150 15 180 45 165 90 square false 0 Rectangle -7500403 true true 30 30 270 270 square 2 false 0 Rectangle -7500403 true true 30 30 270 270 Rectangle -16777216 true false 60 60 240 240 star false 0 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108 star sick false 0 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108 Circle -2674135 true false 156 171 108 target false 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 Circle -7500403 true true 60 60 180 Circle -16777216 true false 90 90 120 Circle -7500403 true true 120 120 60 target sick true 0 Circle -7500403 true true 0 0 300 Circle -16777216 true false 30 30 240 Circle -7500403 true true 60 60 180 Circle -16777216 true false 90 90 120 Circle -7500403 true true 120 120 60 Circle -2674135 true false 163 163 95 tree false 0 Circle -7500403 true true 118 3 94 Rectangle -6459832 true false 120 195 180 300 Circle -7500403 true true 65 21 108 Circle -7500403 true true 116 41 127 Circle -7500403 true true 45 90 120 Circle -7500403 true true 104 74 152 triangle false 0 Polygon -7500403 true true 150 30 15 255 285 255 triangle 2 false 0 Polygon -7500403 true true 150 30 15 255 285 255 Polygon -16777216 true false 151 99 225 223 75 224 truck false 0 Rectangle -7500403 true true 4 45 195 187 Polygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194 Rectangle -1 true false 195 60 195 105 Polygon -16777216 true false 238 112 252 141 219 141 218 112 Circle -16777216 true false 234 174 42 Rectangle -7500403 true true 181 185 214 194 Circle -16777216 true false 144 174 42 Circle -16777216 true false 24 174 42 Circle -7500403 false true 24 174 42 Circle -7500403 false true 144 174 42 Circle -7500403 false true 234 174 42 turtle true 0 Polygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210 Polygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105 Polygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105 Polygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87 Polygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210 Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99 wheel false 0 Circle -7500403 true true 3 3 294 Circle -16777216 true false 30 30 240 Line -7500403 true 150 285 150 15 Line -7500403 true 15 150 285 150 Circle -7500403 true true 120 120 60 Line -7500403 true 216 40 79 269 Line -7500403 true 40 84 269 221 Line -7500403 true 40 216 269 79 Line -7500403 true 84 40 221 269 wheel sick false 0 Circle -7500403 true true 3 3 294 Circle -16777216 true false 30 30 240 Line -7500403 true 150 285 150 15 Line -7500403 true 15 150 285 150 Circle -7500403 true true 120 120 60 Line -7500403 true 216 40 79 269 Line -7500403 true 40 84 269 221 Line -7500403 true 40 216 269 79 Line -7500403 true 84 40 221 269 Circle -2674135 true false 156 156 108 x false 0 Polygon -7500403 true true 270 75 225 30 30 225 75 270 Polygon -7500403 true true 30 75 75 30 270 225 225 270 @#$#@#$#@ NetLogo 4.0.4 @#$#@#$#@ random-seed 3 setup-clear infect repeat 100 [ go wait 0.1 ] @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ default 0.0 -0.2 0 0.0 1.0 0.0 1 1.0 0.0 0.2 0 0.0 1.0 link direction true 0 Line -7500403 true 150 150 90 180 Line -7500403 true 150 150 210 180 @#$#@#$#@