UI/Model Parse - Sliders - WIP
[clnl] / resources / models / Wolf Sheep Predation.nlogo
1 globals [grass]  ;; keep track of how much grass there is
2 ;; Sheep and wolves are both breeds of turtle.
3 breed [sheep a-sheep]  ;; sheep is its own plural, so we use "a-sheep" as the singular.
4 breed [wolves wolf]
5 turtles-own [energy]       ;; both wolves and sheep have energy
6 patches-own [countdown]
7
8 to setup
9   clear-all
10   ask patches [ set pcolor green ]
11   ;; check GRASS? switch.
12   ;; if it is true, then grass grows and the sheep eat it
13   ;; if it false, then the sheep don't need to eat
14   if grass? [
15     ask patches [
16       set pcolor one-of [green brown]
17       if-else pcolor = green
18         [ set countdown grass-regrowth-time ]
19         [ set countdown random grass-regrowth-time ] ;; initialize grass grow clocks randomly for brown patches
20     ]
21   ]
22   set-default-shape sheep "sheep"
23   create-sheep initial-number-sheep  ;; create the sheep, then initialize their variables
24   [
25     set color white
26     set size 1.5  ;; easier to see
27     set label-color blue - 2
28     set energy random (2 * sheep-gain-from-food)
29     setxy random-xcor random-ycor
30   ]
31   set-default-shape wolves "wolf"
32   create-wolves initial-number-wolves  ;; create the wolves, then initialize their variables
33   [
34     set color black
35     set size 2  ;; easier to see
36     set energy random (2 * wolf-gain-from-food)
37     setxy random-xcor random-ycor
38   ]
39   display-labels
40   set grass count patches with [pcolor = green]
41   reset-ticks
42 end
43
44 to go
45   if not any? turtles [ stop ]
46   ask sheep [
47     move
48     if grass? [
49       set energy energy - 1  ;; deduct energy for sheep only if grass? switch is on
50       eat-grass
51     ]
52     death
53     reproduce-sheep
54   ]
55   ask wolves [
56     move
57     set energy energy - 1  ;; wolves lose energy as they move
58     catch-sheep
59     death
60     reproduce-wolves
61   ]
62   if grass? [ ask patches [ grow-grass ] ]
63   set grass count patches with [pcolor = green]
64   tick
65   display-labels
66 end
67
68 to move  ;; turtle procedure
69   rt random 50
70   lt random 50
71   fd 1
72 end
73
74 to eat-grass  ;; sheep procedure
75   ;; sheep eat grass, turn the patch brown
76   if pcolor = green [
77     set pcolor brown
78     set energy energy + sheep-gain-from-food  ;; sheep gain energy by eating
79   ]
80 end
81
82 to reproduce-sheep  ;; sheep procedure
83   if random-float 100 < sheep-reproduce [  ;; throw "dice" to see if you will reproduce
84     set energy (energy / 2)                ;; divide energy between parent and offspring
85     hatch 1 [ rt random-float 360 fd 1 ]   ;; hatch an offspring and move it forward 1 step
86   ]
87 end
88
89 to reproduce-wolves  ;; wolf procedure
90   if random-float 100 < wolf-reproduce [  ;; throw "dice" to see if you will reproduce
91     set energy (energy / 2)               ;; divide energy between parent and offspring
92     hatch 1 [ rt random-float 360 fd 1 ]  ;; hatch an offspring and move it forward 1 step
93   ]
94 end
95
96 to catch-sheep  ;; wolf procedure
97   let prey one-of sheep-here                    ;; grab a random sheep
98   if prey != nobody                             ;; did we get one?  if so,
99     [ ask prey [ die ]                          ;; kill it
100       set energy energy + wolf-gain-from-food ] ;; get energy from eating
101 end
102
103 to death  ;; turtle procedure
104   ;; when energy dips below zero, die
105   if energy < 0 [ die ]
106 end
107
108 to grow-grass  ;; patch procedure
109   ;; countdown on brown patches: if reach 0, grow some grass
110   if pcolor = brown [
111     ifelse countdown <= 0
112       [ set pcolor green
113         set countdown grass-regrowth-time ]
114       [ set countdown countdown - 1 ]
115   ]
116 end
117
118 to display-labels
119   ask turtles [ set label "" ]
120   if show-energy? [
121     ask wolves [ set label round energy ]
122     if grass? [ ask sheep [ set label round energy ] ]
123   ]
124 end
125
126
127 ; Copyright 1997 Uri Wilensky.
128 ; See Info tab for full copyright and license.
129 @#$#@#$#@
130 GRAPHICS-WINDOW
131 350
132 10
133 819
134 500
135 25
136 25
137 9.0
138 1
139 14
140 1
141 1
142 1
143 0
144 1
145 1
146 1
147 -25
148 25
149 -25
150 25
151 1
152 1
153 1
154 ticks
155 30.0
156
157 SLIDER
158 3
159 150
160 177
161 183
162 initial-number-sheep
163 initial-number-sheep
164 0
165 250
166 100
167 1
168 1
169 NIL
170 HORIZONTAL
171
172 SLIDER
173 3
174 187
175 177
176 220
177 sheep-gain-from-food
178 sheep-gain-from-food
179 0.0
180 50.0
181 4
182 1.0
183 1
184 NIL
185 HORIZONTAL
186
187 SLIDER
188 3
189 222
190 177
191 255
192 sheep-reproduce
193 sheep-reproduce
194 1.0
195 20.0
196 4
197 1.0
198 1
199 %
200 HORIZONTAL
201
202 SLIDER
203 181
204 150
205 346
206 183
207 initial-number-wolves
208 initial-number-wolves
209 0
210 250
211 50
212 1
213 1
214 NIL
215 HORIZONTAL
216
217 SLIDER
218 181
219 186
220 346
221 219
222 wolf-gain-from-food
223 wolf-gain-from-food
224 0.0
225 100.0
226 20
227 1.0
228 1
229 NIL
230 HORIZONTAL
231
232 SLIDER
233 181
234 222
235 346
236 255
237 wolf-reproduce
238 wolf-reproduce
239 0.0
240 20.0
241 5
242 1.0
243 1
244 %
245 HORIZONTAL
246
247 SWITCH
248 5
249 87
250 99
251 120
252 grass?
253 grass?
254 1
255 1
256 -1000
257
258 SLIDER
259 106
260 88
261 318
262 121
263 grass-regrowth-time
264 grass-regrowth-time
265 0
266 100
267 30
268 1
269 1
270 NIL
271 HORIZONTAL
272
273 BUTTON
274 8
275 28
276 77
277 61
278 setup
279 setup
280 NIL
281 1
282 T
283 OBSERVER
284 NIL
285 NIL
286 NIL
287 NIL
288 1
289
290 BUTTON
291 90
292 28
293 157
294 61
295 go
296 go
297 T
298 1
299 T
300 OBSERVER
301 NIL
302 NIL
303 NIL
304 NIL
305 0
306
307 PLOT
308 12
309 312
310 328
311 509
312 populations
313 time
314 pop.
315 0.0
316 100.0
317 0.0
318 100.0
319 true
320 true
321 "" ""
322 PENS
323 "sheep" 1.0 0 -13345367 true "" "plot count sheep"
324 "wolves" 1.0 0 -2674135 true "" "plot count wolves"
325 "grass / 4" 1.0 0 -10899396 true "" "if grass? [ plot grass / 4 ]"
326
327 MONITOR
328 50
329 265
330 121
331 310
332 sheep
333 count sheep
334 3
335 1
336 11
337
338 MONITOR
339 125
340 265
341 207
342 310
343 wolves
344 count wolves
345 3
346 1
347 11
348
349 MONITOR
350 211
351 265
352 287
353 310
354 NIL
355 grass / 4
356 0
357 1
358 11
359
360 TEXTBOX
361 8
362 130
363 148
364 149
365 Sheep settings
366 11
367 0.0
368 0
369
370 TEXTBOX
371 186
372 130
373 299
374 148
375 Wolf settings
376 11
377 0.0
378 0
379
380 TEXTBOX
381 9
382 68
383 161
384 86
385 Grass settings
386 11
387 0.0
388 0
389
390 SWITCH
391 167
392 28
393 303
394 61
395 show-energy?
396 show-energy?
397 1
398 1
399 -1000
400
401 @#$#@#$#@
402 ## WHAT IS IT?
403
404 This model explores the stability of predator-prey ecosystems. Such a system is called unstable if it tends to result in extinction for one or more species involved.  In contrast, a system is stable if it tends to maintain itself over time, despite fluctuations in population sizes.
405
406 ## HOW IT WORKS
407
408 There are two main variations to this model.
409
410 In the first variation, wolves and sheep wander randomly around the landscape, while the wolves look for sheep to prey on. Each step costs the wolves energy, and they must eat sheep in order to replenish their energy - when they run out of energy they die. To allow the population to continue, each wolf or sheep has a fixed probability of reproducing at each time step. This variation produces interesting population dynamics, but is ultimately unstable.
411
412 The second variation includes grass (green) in addition to wolves and sheep. The behavior of the wolves is identical to the first variation, however this time the sheep must eat grass in order to maintain their energy - when they run out of energy they die. Once grass is eaten it will only regrow after a fixed amount of time. This variation is more complex than the first, but it is generally stable.
413
414 The construction of this model is described in two papers by Wilensky & Reisman referenced below.
415
416 ## HOW TO USE IT
417
418 1. Set the GRASS? switch to TRUE to include grass in the model, or to FALSE to only include wolves (red) and sheep (white).
419 2. Adjust the slider parameters (see below), or use the default settings.
420 3. Press the SETUP button.
421 4. Press the GO button to begin the simulation.
422 5. Look at the monitors to see the current population sizes
423 6. Look at the POPULATIONS plot to watch the populations fluctuate over time
424
425 Parameters:
426 INITIAL-NUMBER-SHEEP: The initial size of sheep population
427 INITIAL-NUMBER-WOLVES: The initial size of wolf population
428 SHEEP-GAIN-FROM-FOOD: The amount of energy sheep get for every grass patch eaten
429 WOLF-GAIN-FROM-FOOD: The amount of energy wolves get for every sheep eaten
430 SHEEP-REPRODUCE: The probability of a sheep reproducing at each time step
431 WOLF-REPRODUCE: The probability of a wolf reproducing at each time step
432 GRASS?: Whether or not to include grass in the model
433 GRASS-REGROWTH-TIME: How long it takes for grass to regrow once it is eaten
434 SHOW-ENERGY?: Whether or not to show the energy of each animal as a number
435
436 Notes:
437 - one unit of energy is deducted for every step a wolf takes
438 - when grass is included, one unit of energy is deducted for every step a sheep takes
439
440 ## THINGS TO NOTICE
441
442 When grass is not included, watch as the sheep and wolf populations fluctuate. Notice that increases and decreases in the sizes of each population are related. In what way are they related? What eventually happens?
443
444 Once grass is added, notice the green line added to the population plot representing fluctuations in the amount of grass. How do the sizes of the three populations appear to relate now? What is the explanation for this?
445
446 Why do you suppose that some variations of the model might be stable while others are not?
447
448 ## THINGS TO TRY
449
450 Try adjusting the parameters under various settings. How sensitive is the stability of the model to the particular parameters?
451
452 Can you find any parameters that generate a stable ecosystem that includes only wolves and sheep?
453
454 Try setting GRASS? to TRUE, but setting INITIAL-NUMBER-WOLVES to 0. This gives a stable ecosystem with only sheep and grass. Why might this be stable while the variation with only sheep and wolves is not?
455
456 Notice that under stable settings, the populations tend to fluctuate at a predictable pace. Can you find any parameters that will speed this up or slow it down?
457
458 Try changing the reproduction rules -- for example, what would happen if reproduction depended on energy rather than being determined by a fixed probability?
459
460 ## EXTENDING THE MODEL
461
462 There are a number ways to alter the model so that it will be stable with only wolves and sheep (no grass). Some will require new elements to be coded in or existing behaviors to be changed. Can you develop such a version?
463
464 Can you modify the model so the sheep will flock?
465
466 Can you modify the model so that wolf actively chase sheep?
467
468 ## NETLOGO FEATURES
469
470 Note the use of breeds to model two different kinds of "turtles": wolves and sheep. Note the use of patches to model grass.
471
472 Note use of the ONE-OF agentset reporter to select a random sheep to be eaten by a wolf.
473
474 ## RELATED MODELS
475
476 Look at Rabbits Grass Weeds for another model of interacting populations with different rules.
477
478 ## CREDITS AND REFERENCES
479
480 Wilensky, U. & Reisman, K. (1999). Connected Science: Learning Biology through Constructing and Testing Computational Theories -- an Embodied Modeling Approach. International Journal of Complex Systems, M. 234, pp. 1 - 12. (This model is a slightly extended version of the model described in the paper.)
481
482 Wilensky, U. & Reisman, K. (2006). Thinking like a Wolf, a Sheep or a Firefly: Learning Biology through Constructing and Testing Computational Theories -- an Embodied Modeling Approach. Cognition & Instruction, 24(2), pp. 171-209. http://ccl.northwestern.edu/papers/wolfsheep.pdf
483
484 ## HOW TO CITE
485
486 If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.
487
488 For the model itself:
489
490 * Wilensky, U. (1997).  NetLogo Wolf Sheep Predation model.  http://ccl.northwestern.edu/netlogo/models/WolfSheepPredation.  Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
491
492 Please cite the NetLogo software as:
493
494 * Wilensky, U. (1999). NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling, Northwestern University, Evanston, IL.
495
496 ## COPYRIGHT AND LICENSE
497
498 Copyright 1997 Uri Wilensky.
499
500 ![CC BY-NC-SA 3.0](http://ccl.northwestern.edu/images/creativecommons/byncsa.png)
501
502 This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License.  To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
503
504 Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.
505
506 This model was created as part of the project: CONNECTED MATHEMATICS: MAKING SENSE OF COMPLEX PHENOMENA THROUGH BUILDING OBJECT-BASED PARALLEL MODELS (OBPML).  The project gratefully acknowledges the support of the National Science Foundation (Applications of Advanced Technologies Program) -- grant numbers RED #9552950 and REC #9632612.
507
508 This model was converted to NetLogo as part of the projects: PARTICIPATORY SIMULATIONS: NETWORK-BASED DESIGN FOR SYSTEMS LEARNING IN CLASSROOMS and/or INTEGRATED SIMULATION AND MODELING ENVIRONMENT. The project gratefully acknowledges the support of the National Science Foundation (REPP & ROLE programs) -- grant numbers REC #9814682 and REC-0126227. Converted from StarLogoT to NetLogo, 2000.
509
510 <!-- 1997 2000 -->
511 @#$#@#$#@
512 default
513 true
514 0
515 Polygon -7500403 true true 150 5 40 250 150 205 260 250
516
517 airplane
518 true
519 0
520 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
521
522 arrow
523 true
524 0
525 Polygon -7500403 true true 150 0 0 150 105 150 105 293 195 293 195 150 300 150
526
527 box
528 false
529 0
530 Polygon -7500403 true true 150 285 285 225 285 75 150 135
531 Polygon -7500403 true true 150 135 15 75 150 15 285 75
532 Polygon -7500403 true true 15 75 15 225 150 285 150 135
533 Line -16777216 false 150 285 150 135
534 Line -16777216 false 150 135 15 75
535 Line -16777216 false 150 135 285 75
536
537 bug
538 true
539 0
540 Circle -7500403 true true 96 182 108
541 Circle -7500403 true true 110 127 80
542 Circle -7500403 true true 110 75 80
543 Line -7500403 true 150 100 80 30
544 Line -7500403 true 150 100 220 30
545
546 butterfly
547 true
548 0
549 Polygon -7500403 true true 150 165 209 199 225 225 225 255 195 270 165 255 150 240
550 Polygon -7500403 true true 150 165 89 198 75 225 75 255 105 270 135 255 150 240
551 Polygon -7500403 true true 139 148 100 105 55 90 25 90 10 105 10 135 25 180 40 195 85 194 139 163
552 Polygon -7500403 true true 162 150 200 105 245 90 275 90 290 105 290 135 275 180 260 195 215 195 162 165
553 Polygon -16777216 true false 150 255 135 225 120 150 135 120 150 105 165 120 180 150 165 225
554 Circle -16777216 true false 135 90 30
555 Line -16777216 false 150 105 195 60
556 Line -16777216 false 150 105 105 60
557
558 car
559 false
560 0
561 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
562 Circle -16777216 true false 180 180 90
563 Circle -16777216 true false 30 180 90
564 Polygon -16777216 true false 162 80 132 78 134 135 209 135 194 105 189 96 180 89
565 Circle -7500403 true true 47 195 58
566 Circle -7500403 true true 195 195 58
567
568 circle
569 false
570 0
571 Circle -7500403 true true 0 0 300
572
573 circle 2
574 false
575 0
576 Circle -7500403 true true 0 0 300
577 Circle -16777216 true false 30 30 240
578
579 cow
580 false
581 0
582 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
583 Polygon -7500403 true true 73 210 86 251 62 249 48 208
584 Polygon -7500403 true true 25 114 16 195 9 204 23 213 25 200 39 123
585
586 cylinder
587 false
588 0
589 Circle -7500403 true true 0 0 300
590
591 dot
592 false
593 0
594 Circle -7500403 true true 90 90 120
595
596 face happy
597 false
598 0
599 Circle -7500403 true true 8 8 285
600 Circle -16777216 true false 60 75 60
601 Circle -16777216 true false 180 75 60
602 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
603
604 face neutral
605 false
606 0
607 Circle -7500403 true true 8 7 285
608 Circle -16777216 true false 60 75 60
609 Circle -16777216 true false 180 75 60
610 Rectangle -16777216 true false 60 195 240 225
611
612 face sad
613 false
614 0
615 Circle -7500403 true true 8 8 285
616 Circle -16777216 true false 60 75 60
617 Circle -16777216 true false 180 75 60
618 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
619
620 fish
621 false
622 0
623 Polygon -1 true false 44 131 21 87 15 86 0 120 15 150 0 180 13 214 20 212 45 166
624 Polygon -1 true false 135 195 119 235 95 218 76 210 46 204 60 165
625 Polygon -1 true false 75 45 83 77 71 103 86 114 166 78 135 60
626 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
627 Circle -16777216 true false 215 106 30
628
629 flag
630 false
631 0
632 Rectangle -7500403 true true 60 15 75 300
633 Polygon -7500403 true true 90 150 270 90 90 30
634 Line -7500403 true 75 135 90 135
635 Line -7500403 true 75 45 90 45
636
637 flower
638 false
639 0
640 Polygon -10899396 true false 135 120 165 165 180 210 180 240 150 300 165 300 195 240 195 195 165 135
641 Circle -7500403 true true 85 132 38
642 Circle -7500403 true true 130 147 38
643 Circle -7500403 true true 192 85 38
644 Circle -7500403 true true 85 40 38
645 Circle -7500403 true true 177 40 38
646 Circle -7500403 true true 177 132 38
647 Circle -7500403 true true 70 85 38
648 Circle -7500403 true true 130 25 38
649 Circle -7500403 true true 96 51 108
650 Circle -16777216 true false 113 68 74
651 Polygon -10899396 true false 189 233 219 188 249 173 279 188 234 218
652 Polygon -10899396 true false 180 255 150 210 105 210 75 240 135 240
653
654 house
655 false
656 0
657 Rectangle -7500403 true true 45 120 255 285
658 Rectangle -16777216 true false 120 210 180 285
659 Polygon -7500403 true true 15 120 150 15 285 120
660 Line -16777216 false 30 120 270 120
661
662 leaf
663 false
664 0
665 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
666 Polygon -7500403 true true 135 195 135 240 120 255 105 255 105 285 135 285 165 240 165 195
667
668 line
669 true
670 0
671 Line -7500403 true 150 0 150 300
672
673 line half
674 true
675 0
676 Line -7500403 true 150 0 150 150
677
678 pentagon
679 false
680 0
681 Polygon -7500403 true true 150 15 15 120 60 285 240 285 285 120
682
683 person
684 false
685 0
686 Circle -7500403 true true 110 5 80
687 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
688 Rectangle -7500403 true true 127 79 172 94
689 Polygon -7500403 true true 195 90 240 150 225 180 165 105
690 Polygon -7500403 true true 105 90 60 150 75 180 135 105
691
692 plant
693 false
694 0
695 Rectangle -7500403 true true 135 90 165 300
696 Polygon -7500403 true true 135 255 90 210 45 195 75 255 135 285
697 Polygon -7500403 true true 165 255 210 210 255 195 225 255 165 285
698 Polygon -7500403 true true 135 180 90 135 45 120 75 180 135 210
699 Polygon -7500403 true true 165 180 165 210 225 180 255 120 210 135
700 Polygon -7500403 true true 135 105 90 60 45 45 75 105 135 135
701 Polygon -7500403 true true 165 105 165 135 225 105 255 45 210 60
702 Polygon -7500403 true true 135 90 120 45 150 15 180 45 165 90
703
704 sheep
705 false
706 15
707 Circle -1 true true 203 65 88
708 Circle -1 true true 70 65 162
709 Circle -1 true true 150 105 120
710 Polygon -7500403 true false 218 120 240 165 255 165 278 120
711 Circle -7500403 true false 214 72 67
712 Rectangle -1 true true 164 223 179 298
713 Polygon -1 true true 45 285 30 285 30 240 15 195 45 210
714 Circle -1 true true 3 83 150
715 Rectangle -1 true true 65 221 80 296
716 Polygon -1 true true 195 285 210 285 210 240 240 210 195 210
717 Polygon -7500403 true false 276 85 285 105 302 99 294 83
718 Polygon -7500403 true false 219 85 210 105 193 99 201 83
719
720 square
721 false
722 0
723 Rectangle -7500403 true true 30 30 270 270
724
725 square 2
726 false
727 0
728 Rectangle -7500403 true true 30 30 270 270
729 Rectangle -16777216 true false 60 60 240 240
730
731 star
732 false
733 0
734 Polygon -7500403 true true 151 1 185 108 298 108 207 175 242 282 151 216 59 282 94 175 3 108 116 108
735
736 target
737 false
738 0
739 Circle -7500403 true true 0 0 300
740 Circle -16777216 true false 30 30 240
741 Circle -7500403 true true 60 60 180
742 Circle -16777216 true false 90 90 120
743 Circle -7500403 true true 120 120 60
744
745 tree
746 false
747 0
748 Circle -7500403 true true 118 3 94
749 Rectangle -6459832 true false 120 195 180 300
750 Circle -7500403 true true 65 21 108
751 Circle -7500403 true true 116 41 127
752 Circle -7500403 true true 45 90 120
753 Circle -7500403 true true 104 74 152
754
755 triangle
756 false
757 0
758 Polygon -7500403 true true 150 30 15 255 285 255
759
760 triangle 2
761 false
762 0
763 Polygon -7500403 true true 150 30 15 255 285 255
764 Polygon -16777216 true false 151 99 225 223 75 224
765
766 truck
767 false
768 0
769 Rectangle -7500403 true true 4 45 195 187
770 Polygon -7500403 true true 296 193 296 150 259 134 244 104 208 104 207 194
771 Rectangle -1 true false 195 60 195 105
772 Polygon -16777216 true false 238 112 252 141 219 141 218 112
773 Circle -16777216 true false 234 174 42
774 Rectangle -7500403 true true 181 185 214 194
775 Circle -16777216 true false 144 174 42
776 Circle -16777216 true false 24 174 42
777 Circle -7500403 false true 24 174 42
778 Circle -7500403 false true 144 174 42
779 Circle -7500403 false true 234 174 42
780
781 turtle
782 true
783 0
784 Polygon -10899396 true false 215 204 240 233 246 254 228 266 215 252 193 210
785 Polygon -10899396 true false 195 90 225 75 245 75 260 89 269 108 261 124 240 105 225 105 210 105
786 Polygon -10899396 true false 105 90 75 75 55 75 40 89 31 108 39 124 60 105 75 105 90 105
787 Polygon -10899396 true false 132 85 134 64 107 51 108 17 150 2 192 18 192 52 169 65 172 87
788 Polygon -10899396 true false 85 204 60 233 54 254 72 266 85 252 107 210
789 Polygon -7500403 true true 119 75 179 75 209 101 224 135 220 225 175 261 128 261 81 224 74 135 88 99
790
791 wheel
792 false
793 0
794 Circle -7500403 true true 3 3 294
795 Circle -16777216 true false 30 30 240
796 Line -7500403 true 150 285 150 15
797 Line -7500403 true 15 150 285 150
798 Circle -7500403 true true 120 120 60
799 Line -7500403 true 216 40 79 269
800 Line -7500403 true 40 84 269 221
801 Line -7500403 true 40 216 269 79
802 Line -7500403 true 84 40 221 269
803
804 wolf
805 false
806 0
807 Polygon -16777216 true false 253 133 245 131 245 133
808 Polygon -7500403 true true 2 194 13 197 30 191 38 193 38 205 20 226 20 257 27 265 38 266 40 260 31 253 31 230 60 206 68 198 75 209 66 228 65 243 82 261 84 268 100 267 103 261 77 239 79 231 100 207 98 196 119 201 143 202 160 195 166 210 172 213 173 238 167 251 160 248 154 265 169 264 178 247 186 240 198 260 200 271 217 271 219 262 207 258 195 230 192 198 210 184 227 164 242 144 259 145 284 151 277 141 293 140 299 134 297 127 273 119 270 105
809 Polygon -7500403 true true -1 195 14 180 36 166 40 153 53 140 82 131 134 133 159 126 188 115 227 108 236 102 238 98 268 86 269 92 281 87 269 103 269 113
810
811 x
812 false
813 0
814 Polygon -7500403 true true 270 75 225 30 30 225 75 270
815 Polygon -7500403 true true 30 75 75 30 270 225 225 270
816
817 @#$#@#$#@
818 NetLogo 5.2.0
819 @#$#@#$#@
820 setup
821 set grass? true
822 repeat 75 [ go ]
823 @#$#@#$#@
824 @#$#@#$#@
825 @#$#@#$#@
826 @#$#@#$#@
827 default
828 0.0
829 -0.2 0 0.0 1.0
830 0.0 1 1.0 0.0
831 0.2 0 0.0 1.0
832 link direction
833 true
834 0
835 Line -7500403 true 150 150 90 180
836 Line -7500403 true 150 150 210 180
837
838 @#$#@#$#@
839 0
840 @#$#@#$#@