;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;Ant Optimization;;;;;;; ;;;;;;;By Steve Johnson;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;Varables;;;;;;;;;;;; globals [clock de-wall evap? Gheading Increment] breeds [hive worker builder food] ;;These are the diferent turtle "breeds" used in this model hive-own [hfood] ;;This variable keeps track of a hive's food level worker-own [wfood whome havefood?] ;;The wfood and whome (workerfood and workerhome) variables keep track of the ant's chemical strength level. These diminish with each step. The last variable tells the ant if it is carrying food builder-own [btime] ;;This is used by the model to create the walls food-own [ffood] ;;This variable keep track of the size of a food source patches-own [foodc homec wall?] ;;These variables store the food and home chemicals on that patch and tell the patch if it is a wall ;;;;;;;;Setup Methods;;;;;;;;; to setup ;;Orchestrates the program setup ca ;;Clear all: resets the world set clock 0 ;;A clock variable used time things set de-wall false ;;A variable used in the third custom setup set evap? false setup-shapes ;;Assigns shapes for the various turtle breeds setup-patches ;;Sets up the patches setup-hive ;;Sets up the hive and ant turtle breeds setup-food ;;Sets up the food turtle breed end to setup-shapes ;;Assigns shapes for the various turtle breeds set-default-shape hive "hive" set-default-shape worker "ant" set-default-shape food "food" if(fun-shapes) ;;A joke option that will assign random shapes to each breed [ ask turtles [set size 1] set-default-shape hive random-one-of shapes set-default-shape worker random-one-of shapes set-default-shape food random-one-of shapes ] end to setup-patches ;;Sets up the patches ask patches [set wall? false] ;;All patches start out as non-walls let temp 0 while [temp < num-walls] [ create-custom-builder 1 [ setxy random-x random-y ;;placement of walls is random set heading random 360 ;;direction of walls is random set btime random 15 + 20 ;;length of walls is random let temp2 0 while [temp2 < btime] [ ask patch-here [ set wall? true ;;Changes this patch ask neighbors [set wall? true] ;;and nearby patches into walls ] if(abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1) ;;Ensures that the turtle does not walk off the screen edge [rt 180] fd 1 set temp2 temp2 + 1 ] die ;;Disposes of the builder afterwards ] set temp temp + 1 ] ask patches [if (wall?) [set pcolor 9]] ;;Walls are displayed as white. Non-walls remain black end to setup-hive ;;Sets up the hive and ant turtle breeds create-custom-hive 1 [ set color new-random-color ;;hives assume a random color setxy 0 -30 ;;hives have a set position while[wall?-of patch-here] ;;choses a new position if the set position was walled [setxy random-x random-y ] set hfood 1 ;;hives start with no food set size 0 ;;the hive's size is proportional to its food hatch-worker num-ants ;;the hive spawns some ants [ set size 1 set heading random 360 ;;ants begin facing a random direction set havefood? false ;;ants are not carrying food when created set whome 100 ;;ants begin on the same spot as the hive and must have this variable adjusted accordingly ] ] end to setup-food ;;Sets up the food turtle breed set Gheading 0 set increment 160 / (food-start + 1) let temp 1 while [temp <= food-start] [ create-custom-food 1 [ set color green ;;Leaves are green...duh set ffood food-val ;;each piece of food has an amount of food set by food-val set size sqrt (ffood / 25) ;;food sources get smaller as they are depleted setxy random-x random-y ;;food is placed randomly if fixed-position? ;;if the fixed position mode is on then the food has a set location [ setxy 0 -15 set heading 80 lt Gheading + increment fd 45 set Gheading Gheading + increment ] while[wall?-of patch-here] ;;moves the food if its current location was walled [setxy random-x random-y] set heading random 360 ] set temp temp + 1 ] end ;;;;;;;;;The Go Methods;;;;;;;;; to go ;;Orchestrates the go methods go-food ;;Tells the food what to do on each time step go-hive ;;Tells the hive what to do on each time step go-workers ;;Tells the ants what to do on each time step go-patches ;;Tells the patches what to do on each time step plot now-food ;;sends feedback to the graph in the GUI if not (evap? and hfood-of random-one-of hive >= 2001) [set clock clock + 1] ;;increments the clock if(de-wall and clock = de-wall-val) ;;Used to remove the walls in the third custom setup [ create-custom-builder 1 [ setxy -4 -12 set heading 0 set btime 5 ] create-custom-builder 1 [ setxy -4 16 set heading 0 set btime 5 ] ask builder [ while [btime > 0] [ ask patch-here [ set wall? false ask neighbors [set wall? false] ] if(abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1) [rt 180] fd 1 set btime btime - 1 ] die ] ] end to go-food ;;Tells the food what to do on each time step ask food [ if(ffood < 5) ;;If the food source drops below a certain level it gets removed [die] set size sqrt (ffood / 25) ;;The food source gets smaller as it is depleted ] end to go-hive ;;Tells the hive what to do on each time step ask hive [ set size 1 + sqrt (hfood / 100) ;;The hive gets bigger as ants bring in more food ] end to go-workers ;;Tells the ants what to do on each time step ask worker [ if any? hive-on patch-here ;;adjust your pheromone value if there is a hive here [set whome 100 set homec-of patch-here whome] if any? food-on patch-here ;;adjust your pheromone value if there is food here [set wfood 100 set foodc-of patch-here wfood] ifelse(havefood?) ;;does this ant have food? [return-to-nest] ;;if so, return to the nest [search-for-food] ;;if not, go look for food ] end to return-to-nest ;;ants will return to the hive if they are carrying food ifelse any? hive-on patch-here ;;is there a hive here [ ask one-of hive-on patch-here ;;add food to the hive [set hfood hfood + 5] set havefood? false ;;the ant is no longer carrying food set wfood 0 ;;the ant has just left the hive, so its food pheromone value is set to 0 rt 180 ;;turn around and go look for more food ] [ ifelse any? hive-on neighbors ;;if there is no hive here, is there one next door? [ set heading towards one-of hive-on neighbors ;;if so, go there ] [ let pos1 patch-left-and-ahead 45 1 ;;if not, check the three patches in front of you let pos2 patch-right-and-ahead 45 1 if homec-of pos2 > homec-of pos1 [set pos1 pos2] ;;find which has the strongest pheromone value ifelse homec-of pos1 > homec-of patch-ahead 1 ;;check if the values in front of you arent all the same [ ;;if not, go towarsd the strongest value set heading towards pos1 wiggle ] [ ;;if so, go in a random direction rt random 45 lt random 45 ] check-wrapping ;;Ensures that ants do not walk off the screen edge ] ] fd .75 ;;The ant ends by moving forward one step set wfood foodc-of max-one-of neighbors [foodc] * (.05 * gradiant-degree + .94);;Reduces the ant's chemical strength if foodc-of patch-here < wfood ;;Updates the chemical on the ant's patch [set foodc-of patch-here wfood] end to search-for-food ;;Ants will go and search for food if they have none ifelse any? food-on patch-here ;;Is there food on this patch [ if not (infinite-food) ;;As long as infinite-food is not on the food source will get smaller [ ask one-of food-on patch-here [set ffood ffood - 5] ] set havefood? true ;;The ant has food, resets its chemical and turns for home set whome 0 rt 180 ] [ ifelse any? food-on neighbors ;;Is there food on a neighboring patch? [ set heading towards one-of food-on neighbors ;;If so move towards it wiggle ;;Keeps the ants from moving strictly at 45 degree angles ] [ let pos1 patch-left-and-ahead 45 1 ;;Examines the three front patches and finds the strongest chemical let pos2 patch-right-and-ahead 45 1 if foodc-of pos2 > foodc-of pos1 [set pos1 pos2] if foodc-of pos1 > foodc-of patch-ahead 1 [set heading towards pos1] ifelse foodc-of pos1 = foodc-of patch-ahead 1 ;;If all the patches are the same it will not turn [ rt random 45 lt random 45 ] [ wiggle ] check-wrapping ;;Makes sure the ant does not wrap around the screen ] ] fd .75 ;;The ant ends by moving forward one step set whome homec-of max-one-of neighbors [homec] * (.05 * gradiant-degree + .94);;Reduces the ant's chemical strength if homec-of patch-here < whome ;;Updates the chemical on the ant's patch [set homec-of patch-here whome] end to go-patches ;;Tells the patches what to do on each time step diffuse foodc diffusion * .1 ;;Causes the chemicals to difuse and bleed to adjacent patches diffuse homec diffusion * .1 ask patches [ set foodc foodc * (1 - evaporation * .01) ;;Accounts for any evaporation in the model set homec homec * (1 - evaporation * .001) if foodc > 100 ;;sets upper and lower limits on the value of the chemical strength [set foodc 100] if homec > 100 [set homec 100] if foodc < .5 [set foodc 0] if homec < .5 [set homec 0] if view = "Food-chem" or (view = "Both" and foodc > homec) ;;Colors the patches acording to the current view setting [if not wall? [set pcolor 60 + ((foodc / 100) * 9)]] if view = "Home-chem" or (view = "Both" and foodc < homec) [if not wall? [set pcolor 90 + ((homec / 100) * 9)]] if view = "None" [if not wall? [set pcolor 0]] if (wall? or abs pxcor > screen-edge-x - 1 or abs pycor > screen-edge-y - 1) [ set foodc 0 set homec 0 ] ] end to-report new-random-color ;;Used to generate new colors for the hives and ants in each model let temp (((1 + random 13) * 10) + (3 + random 6)) while [any? hive with [color = temp]] [ set temp (((1 + random 13) * 10) + (3 + random 6)) ] report temp end to-report random-x ;;Generates a random x value acording to the screen size report random (screen-size-x - 2) - (screen-edge-x - 1) end to-report random-y ;;Generates a random y value acording to the screen size report random (screen-size-y - 2) - (screen-edge-y - 1) end to-report now-food ;;Used to report the food level of the hive to the graph in the interface report (hfood-of one-of hive) end to wiggle ;;Keeps ants from moving strictly at 45 degree angles lt random 15 rt random 15 end to check-wrapping ;;Keeps ants from wrapping around the screen while[wall?-of patch-ahead 1 or abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1] [ ifelse (random 2 < 1) [ while [wall?-of patch-ahead 1 or abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1] [ rt 30 ] ] [ while [wall?-of patch-ahead 1 or abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1] [ lt 30 ] ] ] end to-report report-clock ;;Reports the clock variable to the display on the interface report clock end to test-1 ca ;;Clear all: resets the world set clock 0 ;;A clock variable used time things set de-wall false ;;A variable used in the third custom setup set evap? true setup-shapes ;;Assigns shapes for the various turtle breeds setup-patches ;;Sets up the patches setup-hive ;;Sets up the hive and ant turtle breeds create-custom-food 1 [setxy 15 -25] create-custom-food 1 [setxy -15 -5] create-custom-food 1 [setxy -30 25] create-custom-food 1 [setxy 35 10] create-custom-food 1 [setxy 0 35] ask food [ set color green ;;Leaves are green...duh set ffood food-val ;;each piece of food has an amount of food set by food-val set size sqrt (ffood / 25) ;;food sources get smaller as they are depleted ] end to setup-1 ;;A custom setup for the first Deneuborg and Co. Double-Bridge Experiment ca set clock 0 set de-wall false set fixed-position? true set evap? false set food-start 1 setup-shapes ask patches [set wall? false] let temp 0 create-custom-builder 1 [ setxy -5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy 5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy -5 -35 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy -5 -15 set heading 300 set btime 30 ] create-custom-builder 1 [ setxy 5 -15 set heading 60 set btime 30 ] create-custom-builder 1 [ setxy -30 0 set heading 45 set btime 33 ] create-custom-builder 1 [ setxy 30 0 set heading 315 set btime 33 ] create-custom-builder 1 [ setxy -5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy 5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy -5 37 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy 0 -7 set heading 60 set btime 18 ] create-custom-builder 1 [ setxy 0 -7 set heading 300 set btime 18 ] create-custom-builder 1 [ setxy -15 2 set heading 45 set btime 20 ] create-custom-builder 1 [ setxy 15 2 set heading 315 set btime 20 ] create-custom-builder 1 [ setxy 0 15 set heading 0 set btime 1 ] ask builder [ while [btime > 0] [ ask patch-here [ set wall? true ask neighbors [set wall? true] ] if(abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1) [rt 180] fd 1 set btime btime - 1 ] die ] set temp temp + 1 ask patches [if (wall?) [set pcolor 9]] setup-hive setup-food end to setup-2 ;;A custom setup for the second Deneuborg and Co. Double-Bridge Experiment ca set clock 0 set de-wall false set fixed-position? true set evap? false set food-start 1 setup-shapes ask patches [set wall? false] let temp 0 create-custom-builder 1 [ setxy -5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy 5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy -5 -35 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy -5 -15 set heading 315 set btime 22 ] create-custom-builder 1 [ setxy 5 -15 set heading 75 set btime 35 ] create-custom-builder 1 [ setxy 38 -5 set heading 0 set btime 10 ] create-custom-builder 1 [ setxy -20 2 set heading 30 set btime 30 ] create-custom-builder 1 [ setxy 38 4 set heading 300 set btime 37 ] create-custom-builder 1 [ setxy -5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy 5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy -5 37 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy 0 -7 set heading 75 set btime 28 ] create-custom-builder 1 [ setxy 0 -7 set heading 315 set btime 13 ] create-custom-builder 1 [ setxy -10 2 set heading 30 set btime 16 ] create-custom-builder 1 [ setxy 26 0 set heading 300 set btime 30 ] create-custom-builder 1 [ setxy 0 15 set heading 0 set btime 1 ] ask builder [ while [btime > 0] [ ask patch-here [ set wall? true ask neighbors [set wall? true] ] if(abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1) [rt 180] fd 1 set btime btime - 1 ] die ] set temp temp + 1 ask patches [if (wall?) [set pcolor 9]] setup-hive setup-food end to setup-3 ;;A custom setup for the third Deneuborg and Co. Double-Bridge Experiment ca set clock 0 set de-wall true set fixed-position? true set evap? false set food-start 1 setup-shapes ask patches [set wall? false] let temp 0 create-custom-builder 1 [ setxy -5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy 5 -35 set heading 0 set btime 20 ] create-custom-builder 1 [ setxy -5 -35 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy -5 -15 set heading 315 set btime 22 ] create-custom-builder 1 [ setxy 5 -15 set heading 75 set btime 35 ] create-custom-builder 1 [ setxy 38 -5 set heading 0 set btime 10 ] create-custom-builder 1 [ setxy -20 2 set heading 30 set btime 30 ] create-custom-builder 1 [ setxy 38 4 set heading 300 set btime 37 ] create-custom-builder 1 [ setxy -5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy 5 23 set heading 0 set btime 15 ] create-custom-builder 1 [ setxy -5 37 set heading 90 set btime 10 ] create-custom-builder 1 [ setxy 0 -7 set heading 75 set btime 28 ] create-custom-builder 1 [ setxy 0 -7 set heading 315 set btime 13 ] create-custom-builder 1 [ setxy -10 2 set heading 30 set btime 16 ] create-custom-builder 1 [ setxy 26 0 set heading 300 set btime 30 ] create-custom-builder 1 [ setxy 0 15 set heading 0 set btime 1 ] create-custom-builder 1 [ setxy -4 -12 set heading 0 set btime 5 ] create-custom-builder 1 [ setxy -4 16 set heading 0 set btime 5 ] ask builder [ while [btime > 0] [ ask patch-here [ set wall? true ask neighbors [set wall? true] ] if(abs pxcor-of patch-ahead 1 > screen-edge-x - 1 or abs pycor-of patch-ahead 1 > screen-edge-y - 1) [rt 180] fd 1 set btime btime - 1 ] die ] set temp temp + 1 ask patches [if (wall?) [set pcolor 9]] setup-hive setup-food end @#$#@#$#@ GRAPHICS-WINDOW 190 10 658 499 44 44 5.15 1 10 1 1 1 0 1 1 1 CC-WINDOW 5 513 989 608 Command Center 0 BUTTON 108 228 180 261 Setup setup NIL 1 T OBSERVER T S BUTTON 115 409 178 442 Go go T 1 T OBSERVER T G SLIDER 10 10 182 43 Food-Start Food-Start 1 30 4 1 1 NIL SLIDER 9 80 181 113 Num-Walls Num-Walls 0 10 0 1 1 NIL SLIDER 9 117 181 150 Num-Ants Num-Ants 0 300 150 1 1 NIL SLIDER 9 264 181 297 Diffusion Diffusion 0 1 0.01 0.01 1 NIL SWITCH 8 154 181 187 Fixed-Position? Fixed-Position? 1 1 -1000 CHOOSER 668 19 808 64 View View "None" "Food-chem" "Home-chem" "Both" 1 SLIDER 9 300 183 333 Evaporation Evaporation 0 5 2.5 0.1 1 NIL PLOT 669 83 980 317 Food Rate Time Food in Hive 0.0 10.0 0.0 10.0 true false BUTTON 813 10 868 43 NIL set View "None" NIL 1 T OBSERVER T N BUTTON 870 10 925 43 NIL set View "Home-chem" NIL 1 T OBSERVER T H BUTTON 813 45 868 78 NIL set View "Food-chem" NIL 1 T OBSERVER T F BUTTON 871 45 926 78 NIL set View "Both" NIL 1 T OBSERVER T B BUTTON 667 328 769 361 Custom 1 Setup-1 NIL 1 T OBSERVER T NIL BUTTON 785 329 887 362 Custom 2 setup-2 NIL 1 T OBSERVER T NIL BUTTON 786 370 888 403 Custom 3 setup-3 NIL 1 T OBSERVER T NIL SLIDER 807 420 979 453 De-wall-val De-wall-val 5 1500 1500 5 1 NIL SWITCH 8 191 181 224 Fun-shapes Fun-shapes 1 1 -1000 MONITOR 894 367 980 416 Clock Time report-clock 3 1 SWITCH 8 372 180 405 Infinite-Food Infinite-Food 1 1 -1000 TEXTBOX 667 414 807 478 The de-wall value sets the time step on which to remove the walls in Custom 3. MONITOR 894 316 980 365 Hive Food now-food 0 1 SLIDER 9 45 181 78 Food-val Food-val 25 1000 1000 25 1 NIL SLIDER 8 336 181 369 Gradiant-Degree Gradiant-Degree 0 1 1.0 0.1 1 NIL BUTTON 663 369 777 402 Evaporation Test test-1 NIL 1 T OBSERVER T NIL @#$#@#$#@ WHAT IS IT? ----------- This is a model for the foraging of ants. HOW IT WORKS ------------ This model works on a system of two chemicals. When an ant steps on a hive or foodsource it will recieve a "boost" of home or food chemical, respectively. As it walks away from that hive or foodsource the strength of this chemical will diminish. At each step the ant checks its chemical value versus that of the patch it is on. If the chemical of the ant is greater than the patch then the ant will "lay the pheromone," raising the patches chem value to match its own. Ants that do not have food will follow the food chemical to find some and those that are carrying food wil follow the home chemical to return to the hive. HOW TO USE IT ------------- (Starting from top left, going down, and then top right, going down) Food-Start slider: This slider adjusts the number of food sources in the model. Num-Walls slider: This slider adjusts the number of walls in the model. It is possible (but unlikely) that the food or ant hill will get walled in. Num-Ants slider: This slider adjusts the number of ants present in the model. Single-food? toggle: This toggle will automatically set the Food-Start slider to one and give the food and hill a fixed starting location (when off, the food will spawn randomly). Fun-shapes toggle: This toggle will assign random shapes to the ants, food, and hill. Setup button: This button will setup the model with the parameters specified with the sliders above. Difusion slider: This slider will affect the rate at which the home and food chemicals spread to adjacent patches. Evaporation slider: This slider will affect the rate at which the home and food chemicals evaporate. Gradiant-degree slider: This slider will affect the distance from the hive and food sources that the chemicals will reach. Infinite-food? toggle: When activated, food sources will not get smaller. Go button: This button begins the model. Press it again to turn the model off. View selector: This selector toggles between displaying the food chemical, the home chemical, both, or neither. View buttons: These buttons do the same thing as the view selevtor but are linked to the keyboard keys 'F', 'G', 'B", and 'N'. Food rate graph: This graph displays the time on teh x-axis and the amount of food in the ant hill on the y axis. The graph automatically redefines its domain and range as necesary. Custom buttons: These buttons simulate three "double-bridge" experiments performed by Deneuborg and coleagues in 1997. De-wall-val slider: This slider sets the clock step at which the walls will be removed from the third custom experiment. THINGS TO NOTICE ---------------- This section could give some ideas of things for the user to notice while running the model. THINGS TO TRY ------------- This section could give some ideas of things for the user to try to do (move sliders, switches, etc.) with the model. EXTENDING THE MODEL ------------------- One thing that I was not entirely able to balance was the diffusion and evaporation of chemicals. I found that if the evaporation rate was too high than the ants were unable to form a trail. If the evaporation rate was low enough to form a trail then the chemical also lingered long after the food source has been depleted, which made it difficult to work with models with multiple food sources. The diffusion method in the NetLogo library was not entirely what I was looking for in its operation (see NetLogo features for more info) but when I tried to create my own method the performance of my model slowed down dramatically, so I stuck with the built in method. I have a feeling that diffusion and evaporation methods combined are partially self sustaining, which is why the chemical lingers for so long. A deeper investigation into the diffusion and evaporation of the chemicals in this model and a possible fix would allow for analysis of multiple food source models with much greater eficiency (not waiting for an hour for chemicals to fade). NETLOGO FEATURES ---------------- This section could point out any especially interesting or unusual features of NetLogo that the model makes use of, particularly in the Procedures tab. It might also point out places where workarounds were needed because of missing features. RELATED MODELS -------------- Some other related models in the NetLogo library include the antlines model, which demonstrates the optimization of ant following behavior, and the ant foraging model, which demonstrates the use of pheromones for ant foraging. CREDITS AND REFERENCES ---------------------- My Model: http://tjhsst.edu/~sjohnson/NetLogo%20Work/Ants/Ants%20v3.nlogo @#$#@#$#@ 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 ant true 0 Circle -7500403 true true 105 60 90 Circle -7500403 true true 120 150 60 Circle -7500403 true true 105 210 90 Polygon -7500403 true true 165 195 225 210 270 255 270 240 225 195 165 180 Polygon -7500403 true true 135 195 75 210 30 255 30 240 75 195 135 180 Polygon -7500403 true true 165 165 285 165 285 180 165 180 165 165 Polygon -7500403 true true 135 165 15 165 15 180 135 180 135 165 Polygon -7500403 true true 135 165 75 120 30 120 30 135 75 135 135 180 Polygon -7500403 true true 165 165 225 120 270 120 270 135 225 135 165 180 Polygon -7500403 true true 120 90 120 60 105 45 75 30 90 15 120 30 135 45 135 75 Polygon -7500403 true true 180 90 180 60 195 45 225 30 210 15 180 30 165 45 165 75 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 food true 0 Polygon -10899396 true false 150 0 120 15 90 45 60 90 45 165 75 240 120 285 150 300 Polygon -10899396 true false 150 0 180 15 210 45 240 90 255 165 225 240 180 285 150 300 Line -16777216 false 150 300 150 -15 Line -16777216 false 150 270 225 240 Line -16777216 false 150 225 255 165 Line -16777216 false 150 150 240 90 Line -16777216 false 150 105 210 45 Line -16777216 false 150 60 180 15 Line -16777216 false 150 60 120 15 Line -16777216 false 150 105 90 45 Line -16777216 false 150 150 60 90 Line -16777216 false 150 225 45 165 Line -16777216 false 150 270 75 240 hive true 0 Polygon -7500403 true true 149 0 60 30 29 75 4 180 44 256 115 296 226 281 257 240 286 179 293 106 238 59 195 46 91 76 61 165 123 215 207 181 200 99 132 125 143 159 168 145 163 129 147 142 145 128 178 124 173 161 127 175 106 116 197 78 255 128 213 202 123 241 51 201 40 146 88 51 184 23 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 predator true 0 Circle -2674135 true false 71 116 67 Circle -2674135 true false 162 116 67 Rectangle -2674135 true false 225 180 225 195 Polygon -2674135 true false 240 195 225 255 210 210 150 210 150 195 Polygon -2674135 true false 60 195 75 255 90 210 150 210 150 195 Polygon -2674135 true false 240 120 270 75 255 45 240 30 240 45 240 75 210 90 Polygon -2674135 true false 60 120 30 75 45 45 60 30 60 45 60 75 90 90 Polygon -16777216 true false 195 120 210 150 195 180 180 150 195 120 Polygon -16777216 true false 105 120 90 150 105 180 120 150 105 120 Polygon -2674135 true false 195 210 210 210 195 255 180 210 165 255 150 210 Polygon -2674135 true false 105 210 90 210 105 255 120 210 135 255 150 210 Polygon -2674135 true false 135 90 165 90 150 45 135 90 Polygon -2674135 true false 75 285 90 255 105 285 120 255 135 285 150 255 165 285 180 255 195 285 210 255 225 285 splat true 0 Circle -7500403 true true 54 54 42 Circle -7500403 true true 90 120 30 Circle -7500403 true true 138 78 85 Circle -7500403 true true 26 176 67 Circle -7500403 true true 148 193 95 Circle -7500403 true true 240 135 30 Circle -7500403 true true 120 15 30 Polygon -7500403 true true 60 90 90 105 90 135 90 165 45 180 75 240 105 210 120 195 135 195 150 210 150 240 210 210 195 180 195 165 210 135 225 150 255 165 255 150 225 135 210 105 180 90 150 75 150 30 135 30 120 45 135 60 135 90 120 105 105 90 90 75 Circle -7500403 true true 45 120 58 Circle -7500403 true true 176 26 67 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 3.0 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@