globals [ selected-car ; the currently selected car selected-car2 lanes ; a list of the y coordinates of different lanes margin-between-cars max-patience ] breed [vehicles vehicle] breed [obstacles obstacle] obstacles-own [ speed ] vehicles-own [ speed ; the current speed of the car top-speed ; the maximum speed of the car (different for all cars) max-acceleration ; max-deceleration ; target-lane ; the desired lane of the car vehicle-type ; 2 types of (car, truck) ;;driver-type conscious ; scale 0-1 of how likely is the driver to obey the rules 1=obey, 0=not obey calm ; scale 0-1 of how calm the driver is 1=calm, 0=aggresive tolerant ; scale 0-1 of how tolerant to others the driver is 1=tolerant, 0=intolerant will-obey-rules ;drive-style ; driver-style-stay-in-lane driver-style-keep-switching-lanes obstacle-is-infront patience ; the driver's current level of patience wants-to-change-lane safe-to-change-lane allow-to-change-lane allow-to-change-lane-car last-tick-time-allowed ;statistics----- list-of-speeds covered-x-distance ] to initialize-globals set margin-between-cars 0.3 set max-patience 1.0 end to setup clear-all initialize-globals set-default-shape vehicles "car" draw-road setup-obstacles create-or-remove-cars set selected-car one-of vehicles with [ size = 1 ] ask selected-car [ set color green set driver-style-keep-switching-lanes true set top-speed (1.0 + random-normal-in-bounds 0 0.3 -0.3 0.3) set max-acceleration (0.2 + random-normal-in-bounds 0 0.05 -0.05 0.05) set max-deceleration ((top-speed * 0.4) + random-normal-in-bounds 0 0.03 -0.03 0.03) set calm calmness set conscious consciousness set tolerant tolerance ifelse random-float 1.0 < conscious [set will-obey-rules true] [set will-obey-rules false] ] set selected-car2 one-of vehicles with [ size = 1 and self != selected-car ] ask selected-car2 [ set color red set driver-style-stay-in-lane true set top-speed [top-speed] of selected-car set max-acceleration [max-acceleration] of selected-car set max-deceleration [max-deceleration] of selected-car set calm [calm] of selected-car set conscious [conscious] of selected-car set tolerant [tolerant] of selected-car set will-obey-rules [will-obey-rules] of selected-car ] reset-ticks end to setup-obstacles if(obstacle-on) [ set-default-shape obstacles "square" create-obstacles 1 [ let this-obstacle self let road-patches patches with [ member? pycor lanes ] move-to one-of free road-patches set speed 0 set size 1 ] ] end to create-or-remove-cars ; make sure we don't have too many cars for the room we have on the road let road-patches patches with [ member? pycor lanes ] if number-of-cars > count road-patches [ set number-of-cars count road-patches ] create-vehicles (number-of-cars - count vehicles) [ ifelse random 98909 < 18211 [ set size 2 set shape "truck" set top-speed (0.6 + random-normal-in-bounds 0 0.1 -0.1 0.1) set max-acceleration (0.1 + random-normal-in-bounds 0 0.05 -0.05 0.05) set max-deceleration ((top-speed * 0.2) + random-normal-in-bounds 0 0.03 -0.03 0.03) let patch-for-truck position-truck road-patches ifelse patch-for-truck != nobody [ setxy (([pxcor] of patch-for-truck) + 0.5 ) [pycor] of patch-for-truck ] [ die ] ] [ set size 1 set top-speed (1.0 + random-normal-in-bounds 0 0.25 -0.25 0.25) set max-acceleration (0.2 + random-normal-in-bounds 0 0.05 -0.05 0.05) set max-deceleration ((top-speed * 0.4) + random-normal-in-bounds 0 0.03 -0.03 0.03) move-to one-of free road-patches ] set color car-color set target-lane pycor set heading 90 set calm random-normal-in-bounds 0.5 0.5 0.1 0.9 set conscious random-normal-in-bounds 0.5 0.5 0.1 0.9 set tolerant random-normal-in-bounds 0.5 0.5 0.1 0.9 ifelse random-float 1.0 < conscious [set will-obey-rules true] [set will-obey-rules false] set speed 0 set patience (max-patience * calm) set wants-to-change-lane false set safe-to-change-lane false set allow-to-change-lane false set allow-to-change-lane-car nobody set last-tick-time-allowed 0 set driver-style-stay-in-lane false set driver-style-keep-switching-lanes false set obstacle-is-infront false set list-of-speeds [0] set covered-x-distance 0 ] if count vehicles > number-of-cars [ let n count vehicles - number-of-cars ask n-of n vehicles with [(self != selected-car) and (self != selected-car2)] [ die ] ] end to-report position-truck [road-patches] let this-car self let truck-lane-patches road-patches with [ pycor = (last lanes) ] let free-truck-lane-patches truck-lane-patches with [ not any? turtles-here with [ self != this-car ]] let car-free-patches free-truck-lane-patches with [ not any? turtles-on (patch-at-heading-and-distance 90 1)] report one-of car-free-patches with [ not any? (turtles-on (patch-at-heading-and-distance 90 2)) with [size = 2]] end to-report free [ road-patches ] ; turtle procedure let this-car self let free-patches road-patches with [ not any? turtles-here with [ self != this-car ]] report free-patches with [ not any? (turtles-on (patch-at-heading-and-distance 90 1)) with [size = 2]] end to draw-road ask patches [ ; the road is surrounded by green grass of varying shades set pcolor green - random-float 0.5 ] set lanes n-values number-of-lanes [ n -> number-of-lanes - (n * 2) - 1 ] ask patches with [ abs pycor <= number-of-lanes ] [ ; the road itself is varying shades of grey set pcolor grey - 2.5 + random-float 0.25 ] draw-road-lines end to draw-road-lines let y (last lanes) - 1 ; start below the "lowest" lane while [ y <= first lanes + 1 ] [ if not member? y lanes [ ; draw lines on road patches that are not part of a lane ifelse abs y = number-of-lanes [ draw-line y yellow 0 ] ; yellow for the sides of the road [ draw-line y white 0.5 ] ; dashed white between lanes ] set y y + 1 ; move up one patch ] end to draw-line [ y line-color gap ] ; We use a temporary turtle to draw the line: ; - with a gap of zero, we get a continuous line; ; - with a gap greater than zero, we get a dasshed line. create-turtles 1 [ setxy (min-pxcor - 0.5) y hide-turtle set color line-color set heading 90 repeat world-width [ pen-up forward gap pen-down forward (1 - gap) ] die ] end to crash-check ask vehicles [ let blocking-cars cars-infront let blocking-car min-one-of blocking-cars [ distance myself ] if blocking-car != nobody [ let dist minimal-braking-distance blocking-car let car-dist car-distance blocking-car if (car-dist < dist) [ ;show "may crash" slow-down-car blocking-car ] ] ] end to-report cars-infront let this-car self report other turtles in-cone (8 + speed) 160 with [ y-distance <= 1.05 ] end to go create-or-remove-cars ask vehicles with [ patience <= 0 ] [ choose-new-lane ] ask vehicles with [ driver-style-keep-switching-lanes ] [choose-new-lane] ask vehicles with [ ycor != target-lane ] [ move-to-target-lane ] ask vehicles [ move-forward ] crash-check ask vehicles [ adjust-patience ] pickup-statistics tick end to adjust-patience let other-lanes remove ycor lanes if not empty? other-lanes [ let closest-lanes filter [ y -> abs (y - ycor) <= 2 ] other-lanes let best-mean-speed speed foreach closest-lanes [ y -> set heading ifelse-value (y < ycor) [ 180 - 35 ] [ 0 + 35] let cars-in-other-lane other turtles in-cone (4 + abs (ycor - y)) 120 with [ ycor = y ] let mean-speed speed ifelse(count cars-in-other-lane = 0) [ set mean-speed 1000 ] [ set mean-speed mean [speed] of cars-in-other-lane if(is-obstacle? (any? cars-in-other-lane)) [set mean-speed -1] ] if( mean-speed > best-mean-speed) [ set best-mean-speed mean-speed ] ] if(speed < best-mean-speed) [ let speed-quocient speed / best-mean-speed set patience patience - (0.01 * (1 - calm)) ] ] end to-report allow-change-lane [car-changing-lane] ifelse(minimal-braking-distance car-changing-lane < car-distance car-changing-lane ) [ if(allow-to-change-lane-car != car-changing-lane) [ ifelse([target-lane] of car-changing-lane = ycor) [ set allow-to-change-lane-car car-changing-lane ifelse (random-float 1.0 < tolerant and (ticks > last-tick-time-allowed + 15)) [ set allow-to-change-lane true set last-tick-time-allowed ticks ] [set allow-to-change-lane false] ] [ set allow-to-change-lane false set allow-to-change-lane-car nobody ] ] ] [ set allow-to-change-lane false set allow-to-change-lane-car nobody ] report allow-to-change-lane end to move-forward ; vehicles procedure set heading 90 let my-ycor ycor let cars-changing-lane other vehicles in-cone (6 + speed) 140 with [ ycor != my-ycor and wants-to-change-lane ] let car-changing-lane min-one-of cars-changing-lane [ distance myself ] let blocking-cars cars-infront let blocking-car min-one-of blocking-cars [ distance myself ] ifelse(blocking-car != nobody) [ ifelse(is-obstacle? blocking-car) [ set patience 0 set obstacle-is-infront true ] [ set obstacle-is-infront false ] ] [ set obstacle-is-infront false ] if(car-changing-lane = nobody) [ set allow-to-change-lane false set allow-to-change-lane-car nobody ] if(car-changing-lane != nobody and blocking-car != nobody) [ ifelse(allow-change-lane car-changing-lane) [ ifelse(car-distance car-changing-lane > car-distance blocking-car) [ adapt blocking-car ] [ slow-down-car car-changing-lane let dist 0 ask car-changing-lane [set dist x-distance] if ( dist <= (size / 2) + [size / 2] of car-changing-lane) [ adapt blocking-car ] ] ] [ adapt blocking-car ] ] if(car-changing-lane = nobody and blocking-car = nobody) [ speed-up-car nobody ] if(car-changing-lane != nobody and blocking-car = nobody) [ ifelse(allow-change-lane car-changing-lane) [ adapt car-changing-lane let dist 0 ask car-changing-lane [set dist x-distance] if ( dist <= (size / 2) + [size / 2] of car-changing-lane) [ speed-up-car nobody ] ] [ speed-up-car nobody ] ] if(car-changing-lane = nobody and blocking-car != nobody) [ adapt blocking-car ] forward speed end to slow-down-car [ car-ahead ] ; turtle procedure ;; slow down so you are driving more slowly than the car ahead of you ifelse car-ahead != nobody [ let safe-dist-to-move (car-distance car-ahead) - (minimal-braking-distance car-ahead) set safe-dist-to-move safe-dist-to-move - speed ifelse((safe-dist-to-move - speed) > 0) [ ] [ set speed speed - (drivers-deceleration) ] ] [ set speed speed - (drivers-deceleration) ] if speed < 0 [ set speed 0 ] end to speed-up-car [ car-ahead ]; turtle procedure ifelse car-ahead != nobody [ let safe-dist-to-move car-distance car-ahead - minimal-braking-distance car-ahead set speed speed + ((min list drivers-acceleration safe-dist-to-move) ) ] [ set speed (speed + (drivers-acceleration )) ] let max-speed top-speed if(will-obey-rules) [set max-speed min (list speed-limit top-speed )] if speed > max-speed [ set speed max-speed ] if(speed < 0) [ set speed 0 ] end to-report minimal-braking-distance [ car-ahead ] let delta-speed abs (speed - [ speed ] of car-ahead) if(is-vehicle? car-ahead) [ if( [wants-to-change-lane] of car-ahead) [ set delta-speed speed - 0 ] ] let deceleration-time ceiling (delta-speed / drivers-deceleration) let braking-distance (speed * deceleration-time) - ((drivers-deceleration * (deceleration-time * deceleration-time)) / 2) report (braking-distance ) end to-report drivers-acceleration report (max-acceleration * (1 - calm)) end to-report drivers-deceleration report (max-deceleration * (1 - calm)) end to let-change-lane [car-changing-lane] end to adapt [car-ahead] let dist minimal-braking-distance car-ahead ifelse(speed > [ speed ] of car-ahead) [ ifelse( ((car-distance car-ahead)) <= dist) [ slow-down-car car-ahead ] [ speed-up-car car-ahead ] ] [ ifelse (speed < [ speed ] of car-ahead) [ ifelse( ((car-distance car-ahead)) <= dist) [ slow-down-car car-ahead ] [ speed-up-car car-ahead ] ] [ if(speed = [ speed ] of car-ahead and speed = 0) [ speed-up-car car-ahead ] ] ] let abs-dist abs (dist - (car-distance car-ahead)) if(abs-dist < 0.05 and [speed] of car-ahead != 0) [ set speed [speed] of car-ahead ] end to-report car-distance [ car-ahead ] report ((distancexy [xcor] of car-ahead ycor ) - ((size / 2) + (([ size ] of car-ahead) / 2) ) - margin-between-cars) end to choose-new-lane ; turtle procedure ifelse(not driver-style-stay-in-lane) [ choose-new-lane-body ] [ if(obstacle-is-infront) [ choose-new-lane-body ] ] end to choose-new-lane-body let other-lanes remove ycor lanes if not empty? other-lanes [ let closest-lanes filter [ y -> abs (y - ycor) <= 2 ] other-lanes let best-mean-speed speed foreach closest-lanes [ y -> set heading ifelse-value (y < ycor) [ 180 - 35 ] [ 0 + 35] let cars-in-other-lane other turtles in-cone (4 + abs (ycor - y)) 120 with [ ycor = y ] let mean-speed speed ifelse(count cars-in-other-lane = 0) [ set mean-speed 1000 ] [ set mean-speed mean [speed] of cars-in-other-lane if(is-obstacle? (any? cars-in-other-lane)) [set mean-speed -1] ] if( mean-speed > best-mean-speed) [ set target-lane y set best-mean-speed mean-speed ] ] set heading 90 ] end to move-to-target-lane ; turtle procedure set wants-to-change-lane true set heading ifelse-value (target-lane < ycor) [ 180 ] [ 0 ] let this-car1 self let vehicles-around other vehicles in-cone (5 + abs (ycor - target-lane)) 180 let blocking-cars-above vehicles-around with [ x-distance <= (size / 2) + [size / 2] of myself and (y-distance >= (size / 2) and y-distance < 2) ] if(count blocking-cars-above = 0 ) [ let cars-behind-above vehicles-around with [ (xcor + (size / 2)) <= [(xcor - (size / 2))] of this-car1 and ycor = [target-lane] of this-car1] let closest-car-behind-above min-one-of cars-behind-above [ car-distance myself ] ifelse closest-car-behind-above = nobody [ forward 0.2 ] [ let this-car self let can-change-lane false ask closest-car-behind-above [ if(not wants-to-change-lane) [ if (minimal-braking-distance this-car < ( car-distance this-car ) ) [ set can-change-lane true ] if [speed] of closest-car-behind-above = 0 [ set can-change-lane true ] ] ] if(can-change-lane and safe-to-change-lane) [ forward 0.2] ifelse(can-change-lane) [ set safe-to-change-lane true ] [ set safe-to-change-lane false ] ] set patience 1.0 if(ycor = target-lane) [ set wants-to-change-lane false set safe-to-change-lane false set patience 1.0 ] set ycor precision ycor 1 ; to avoid floating point errors ] end to-report x-distance report distancexy [ xcor ] of myself ycor end to-report y-distance report distancexy xcor [ ycor ] of myself end to select-car ; allow the user to select a different car by clicking on it with the mouse if mouse-down? [ let mx mouse-xcor let my mouse-ycor if any? vehicles-on patch mx my [ ask selected-car [ set color car-color ] set selected-car one-of vehicles-on patch mx my ask selected-car [ set color red ] display ] ] end to-report car-color ; give all cars a blueish color, but still make them distinguishable report one-of [ blue cyan sky ] + 1.5 + random-float 1.0 end to-report random-float-between-inclusive [ a b ] report a + random-float (b - a) end to-report random-normal-in-bounds [mid dev mmin mmax] let result random-normal mid dev if result < mmin [ report mmin ] if result > mmax [ report mmax ] report result end to pickup-statistics ask vehicles [ set covered-x-distance covered-x-distance + speed ] ask selected-car [ set list-of-speeds lput speed list-of-speeds ] ask selected-car2 [ set list-of-speeds lput speed list-of-speeds ] end @#$#@#$#@ GRAPHICS-WINDOW 225 10 1053 359 -1 -1 20.0 1 10 1 1 1 0 1 0 1 -20 20 -8 8 1 1 1 ticks 30.0 BUTTON 10 10 75 45 NIL setup NIL 1 T OBSERVER NIL NIL NIL NIL 1 BUTTON 150 10 215 45 go go T 1 T OBSERVER NIL NIL NIL NIL 0 BUTTON 80 10 145 45 go once go NIL 1 T OBSERVER NIL NIL NIL NIL 0 SLIDER 10 50 215 83 number-of-cars number-of-cars 2 (1 * (world-width / 2)) + ((number-of-lanes - 1) * world-width) - (world-width * margin-between-cars) 30.0 1 1 NIL HORIZONTAL PLOT 305 465 675 640 Cars mean speed Time Mean peed 0.0 300.0 0.0 0.0 true true "" "" PENS "green car" 1.0 0 -10899396 true "" "plot mean [ list-of-speeds ] of selected-car" "red car" 1.0 0 -2674135 true "" "plot mean [ list-of-speeds ] of selected-car2" SLIDER 10 120 215 153 speed-limit speed-limit 0.5 2.0 1.0 0.1 1 NIL HORIZONTAL PLOT 685 465 1055 640 Covered distance Time Distance 0.0 0.0 0.0 0.0 true true "" "" PENS "green car" 1.0 0 -10899396 true "" "plot [ covered-x-distance ] of selected-car" "red car" 1.0 0 -2674135 true "" "plot [ covered-x-distance ] of selected-car2" BUTTON 10 330 105 363 follow green car follow selected-car NIL 1 T OBSERVER NIL NIL NIL NIL 0 BUTTON 10 365 105 398 watch green car watch selected-car NIL 1 T OBSERVER NIL NIL NIL NIL 0 BUTTON 10 400 215 433 reset perspective reset-perspective NIL 1 T OBSERVER NIL NIL NIL NIL 0 PLOT 10 466 300 641 Cars Per Lane Time Cars 0.0 0.0 0.0 0.0 true true "set-plot-y-range (floor (count turtles * 0.4)) (ceiling (count turtles * 0.6))\nforeach range length lanes [ i ->\n create-temporary-plot-pen (word (i + 1))\n set-plot-pen-color item i base-colors\n]" "foreach range length lanes [ i ->\n set-current-plot-pen (word (i + 1))\n plot count turtles with [ round ycor = item i lanes ]\n]" PENS SLIDER 10 85 215 118 number-of-lanes number-of-lanes 2 3 3.0 1 1 NIL HORIZONTAL SWITCH 10 155 215 188 obstacle-on obstacle-on 0 1 -1000 BUTTON 105 365 215 398 watch red car watch selected-car2 NIL 1 T OBSERVER NIL NIL NIL NIL 1 BUTTON 105 330 215 363 follow red car follow selected-car2 NIL 1 T OBSERVER NIL NIL NIL NIL 1 SLIDER 10 220 215 253 tolerance tolerance 0.1 0.9 0.4 0.01 1 NIL HORIZONTAL SLIDER 10 290 215 323 calmness calmness 0.1 0.9 0.35 0.01 1 NIL HORIZONTAL SLIDER 10 255 215 288 consciousness consciousness 0.1 0.9 0.2 0.01 1 NIL HORIZONTAL @#$#@#$#@ @#$#@#$#@ 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 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 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 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 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 cylinder false 0 Circle -7500403 true true 0 0 300 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 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 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 line true 0 Line -7500403 true 150 0 150 300 line half true 0 Line -7500403 true 150 0 150 150 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 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 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 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 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 6.0.3 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ 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 @#$#@#$#@ 1 @#$#@#$#@