globals [number-of-individuals dead time death-rate percent-small percent-red percent-square] breeds [males females ] turtles-own [trait1 trait2 trait3 age mother father ] to setup ca create-males (number / 2) ;half the initial turtles are male, half are female create-females (number / 2) ask turtles [ ifelse random 100 < percent_green [set trait1 2] ;trait 1 is color [ifelse random (100 - percent_green) < (((1 - sqrt (percent_green / 100)) ^ 2) * 100) [set trait1 0] [set trait1 1]]] ask turtles [ ifelse random 100 < percent_big [set trait2 2] ; trait 2 is size [ifelse random (100 - percent_big) < (((1 - sqrt (percent_big / 100)) ^ 2) * 100) [set trait2 0] [set trait2 1]]] ask turtles [ ifelse random 100 < percent_circle [set trait3 2] ; trait 3 is shape [ifelse random (100 - percent_circle) < (((1 - sqrt (percent_circle / 100)) ^ 2) * 100) [set trait3 0] [set trait3 1]]] ask turtles [ifelse trait1 = 2 [set color green] [set color red] ; green is recessive(2), red is dominant: (0) for AA (1) for Aa ifelse trait2 = 2 [set size 1] [set size 0.5] ; big is recessive (2), small is dominant: (0) for AA (1) for Aa ifelse trait3 = 2 [set shape "circle"] [set shape "square"]] ; circle is recessive(2), square is dominant: (0) for AA (1) for Aa ask turtles [set heading (random 360) fd random screen-edge-x] ask turtles [ set age random 25] ask turtles [set mother nobody set father nobody] set dead 0 end to go ask turtles [wander ] ask turtles [set age age + 1] set time (time + 1) ask females [if age > 25 [find-mate]] do-selecting set number-of-individuals (count turtles) ask turtles [check-pop-vs-carrying-capacity] if number-of-individuals = 0 [stop] setup-plots do-plotting end to wander fd 1 rt random 90 - random 90 end to check-pop-vs-carrying-capacity if number-of-individuals > (carrying_capacity) [ ifelse number-of-individuals > (2 * carrying_capacity) [if random 2 = 0 [die ] ] [set death-rate (((number-of-individuals - carrying_capacity) / carrying_capacity) * 100) if random 100 < death-rate [die]] ] end to find-mate if mate-preference = "no one" [without-interruption [ if (mother = nobody) and ((any? males-here with [father = nobody])) [set-mates]]] if mate-preference = "red" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [color = red] [set-mates] [if random 101 >= %preference [set-mates]]]] if mate-preference = "green" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [color = green] [set-mates] [if random 101 >= %preference [set-mates]]]] if mate-preference = "small" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [size = 0.5] [set-mates] [if random 101 >= %preference [set-mates]]]] if mate-preference = "big" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [size = 1] [set-mates] [if random 101 >= %preference [set-mates]]]] if mate-preference = "square" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [shape = "square"] [set-mates] [if random 101 >= %preference [set-mates]]]] if mate-preference = "circle" [if (mother = nobody) and (any? males-here with [father = nobody]) [ifelse any? males-here with [shape = "circle"] [set-mates] [if random 101 >= %preference [set-mates]]]] end to set-mates set father (random-one-of males-here with [father = nobody]) set mother self reproduce set age 0 set mother nobody set father nobody end to reproduce ifelse random 2 = 1 [hatch-females 1 [ set age 0 set-trait1-of-offspring set-trait2-of-offspring set-trait3-of-offspring set mother nobody set father nobody ifelse trait1 = 2 [set color green] [set color red] ifelse trait2 = 2 [set size 1] [set size 0.5] ifelse trait3 = 2 [set shape "circle"] [set shape "square"]]] [ hatch-males 1 [ set age 0 set-trait1-of-offspring set-trait2-of-offspring set-trait3-of-offspring set mother nobody set father nobody ifelse trait1 = 2 [set color green] [set color red] ifelse trait2 = 2 [set size 1] [set size 0.5] ifelse trait3 = 2 [set shape "circle"] [set shape "square"]]] end to set-trait1-of-offspring ; 0 is homozygous dominant (AA), 1 is heterozygous (Aa), 2 is homozygous recessive (aa) if (trait1-of father = 0 and trait1-of mother = 0) [set trait1 0] ; AA x AA => AA if (trait1-of father = 0 and trait1-of mother = 1) [set trait1 random 2] ; AA x Aa => 50% AA, 50% Aa if (trait1-of father = 0 and trait1-of mother = 2) [set trait1 1] ; AA x aa => Aa if (trait1-of father = 1 and trait1-of mother = 0) [set trait1 random 2] ; Aa X AA => 50% AA, 50% Aa if (trait1-of father = 1 and trait1-of mother = 1) [ifelse (random 2 = 0) [set trait1 1] [ifelse random 2 = 0 [set trait1 0] [set trait1 2]]]; Aa x Aa => 50% Aa, 25% aa, 25%AA if (trait1-of father = 1 and trait1-of mother = 2) [set trait1 (1 + (random 2))] ; Aa x aa => 50% Aa, 50% aa if (trait1-of father = 2 and trait1-of mother = 0) [set trait1 1] ; aa x AA => Aa if (trait1-of father = 2 and trait1-of mother = 1) [set trait1 (1 + (random 2))] ; aa x Aa => 50% Aa, 50% aa if (trait1-of father = 2 and trait1-of mother = 2) [set trait1 2] ; aa x aa => aa end to set-trait2-of-offspring ; 0 is homozygous dominant (AA), 1 is heterozygous (Aa), 2 is homozygous recessive (aa) if (trait2-of father = 0 and trait2-of mother = 0) [set trait2 0] ; AA x AA => AA if (trait2-of father = 0 and trait2-of mother = 1) [set trait2 random 2] ; AA x Aa => 50% AA, 50% Aa if (trait2-of father = 0 and trait2-of mother = 2) [set trait2 1] ; AA x aa => Aa if (trait2-of father = 1 and trait2-of mother = 0) [set trait2 random 2] ; Aa X AA => 50% AA, 50% Aa if (trait2-of father = 1 and trait2-of mother = 1) [ifelse (random 2 = 0) [set trait2 1] [ifelse random 2 = 0 [set trait2 0] [set trait2 2]]]; Aa x Aa => 50% Aa, 25% aa, 25%AA if (trait2-of father = 1 and trait2-of mother = 2) [set trait2 ((random 2) + 1)] ; Aa x aa => 50% Aa, 50% aa if (trait2-of father = 2 and trait2-of mother = 0) [set trait2 1] ; aa x AA => Aa if (trait2-of father = 2 and trait2-of mother = 1) [set trait2 ((random 2) + 1)] ; aa x Aa => 50% Aa, 50% aa if (trait2-of father = 2 and trait2-of mother = 2) [set trait2 2] ; aa x aa => aa end to set-trait3-of-offspring ; 0 is homozygous dominant (AA), 1 is heterozygous (Aa), 2 is homozygous recessive (aa) if (trait3-of father = 0 and trait3-of mother = 0) [set trait3 0] ; AA x AA => AA if (trait3-of father = 0 and trait3-of mother = 1) [set trait3 random 2] ; AA x Aa => 50% AA, 50% Aa if (trait3-of father = 0 and trait3-of mother = 2) [set trait3 1] ; AA x aa => Aa if (trait3-of father = 1 and trait3-of mother = 0) [set trait3 random 2] ; Aa X AA => 50% AA, 50% Aa if (trait3-of father = 1 and trait3-of mother = 1) [ifelse (random 2 = 0) [set trait3 1] [ifelse random 2 = 0 [set trait3 0] [set trait3 2]]]; Aa x Aa => 50% Aa, 25% aa, 25%AA if (trait3-of father = 1 and trait3-of mother = 2) [set trait3 ((random 2) + 1)] ; Aa x aa => 50% Aa, 50% aa if (trait3-of father = 2 and trait3-of mother = 0) [set trait3 1] ; aa x AA => Aa if (trait3-of father = 2 and trait3-of mother = 1) [set trait3 ((random 2) + 1)] ; aa x Aa => 50% Aa, 50% aa if (trait3-of father = 2 and trait3-of mother = 2) [set trait3 2] ; aa x aa => aa end to setup-plots ; set-current-plot "color AA Aa aa" ; set-plot-x-range 0 2.1 ; set-plot-y-range 0 (int 1.1 * carrying_capacity) ; set-histogram-num-bars 3 ; set-current-plot "size BB Bb bb" ; set-plot-x-range 0 2.1 ; set-plot-y-range 0 (int 1.1 * carrying_capacity) ; set-histogram-num-bars 3 ; set-current-plot "shape DD Dd dd" ; set-plot-x-range 0 2.1 ; set-plot-y-range 0 (int 1.1 * carrying_capacity) ; set-histogram-num-bars 3 end to do-plotting set-current-plot "% by gene" set percent-red ((count turtles with [color = red]) / (number-of-individuals)* 100) set percent-square ((count turtles with [shape = "square"]) / (number-of-individuals) * 100) set percent-small ((count turtles with [size = 0.5]) / (number-of-individuals) * 100) set-current-plot-pen "percent-red" plot percent-red set-current-plot-pen "percent-square" plot percent-square set-current-plot-pen "percent-small" plot percent-small ; set-current-plot "color AA Aa aa" ; histogram-from turtles [ trait1 ] ; set-current-plot "size BB Bb bb" ; histogram-from turtles [ trait2 ] ; set-current-plot "shape DD Dd dd" ; histogram-from turtles [ trait3 ] end to do-selecting if selection-against = "red" [ask turtles with [color = red] [if random 100 < (selection-against_factor / 1000) [die] ]] if selection-against = "green" [ask turtles with [color = green] [if random 100 < (selection-against_factor / 1000) [die] ]] if selection-against = "small" [ask turtles with [size = 0.5] [if random 100 < (selection-against_factor / 1000) [die] ]] if selection-against = "big" [ask turtles with [size = 1] [if random 100 < (selection-against_factor / 1000) [die] ]] if selection-against = "square" [ask turtles with [shape = "square"] [if random 100 < (selection-against_factor / 1000) [die] ]] if selection-against = "circle" [ask turtles with [shape = "circle"] [if random 100 < (selection-against_factor / 1000) [die] ]] end @#$#@#$#@ GRAPHICS-WINDOW 498 10 928 461 17 17 12.0 1 10 1 1 1 0 1 1 1 CC-WINDOW 5 549 937 644 Command Center 0 BUTTON 5 10 68 43 setup setup NIL 1 T OBSERVER T NIL BUTTON 70 10 133 43 go go T 1 T OBSERVER T NIL MONITOR 496 463 627 512 number of individuals number-of-individuals 0 1 SLIDER 9 54 182 87 number number 2 2000 1000 2 1 NIL MONITOR 240 10 297 59 time time 0 1 SLIDER 317 467 489 500 carrying_capacity carrying_capacity 0 2000 1032 1 1 NIL PLOT 0 357 267 535 % by gene time % dom phenotype 0.0 10.0 0.0 100.0 true false PENS "percent-small" 1.0 0 -16777216 true "percent-red" 1.0 0 -2674135 true "percent-square" 1.0 0 -13345367 true TEXTBOX 216 361 290 445 % dominant phenotype\nblack=%small\nred=%red\nblue=%square CHOOSER 6 195 144 240 selection-against selection-against "no one" "red" "green" "small" "big" "square" "circle" 0 SLIDER 1 241 149 274 selection-against_factor selection-against_factor 0 100 0 1 1 NIL TEXTBOX 9 279 153 321 selection-against_factor of zero is same as selecting against no one CHOOSER 150 196 288 241 mate-preference mate-preference "no one" "red" "green" "small" "big" "square" "circle" 0 SLIDER 9 89 181 122 percent_green percent_green 0 100 25 1 1 NIL SLIDER 9 123 181 156 percent_big percent_big 0 100 25 1 1 NIL SLIDER 7 157 179 190 percent_circle percent_circle 0 100 25 1 1 NIL TEXTBOX 192 99 256 189 select the approximate starting % for each recessive trait SLIDER 151 243 288 276 %preference %preference 0 100 0 1 1 NIL TEXTBOX 158 284 308 329 %preference of 0 is the same as having mate preference of no one MONITOR 340 223 397 272 %small percent-small 0 1 MONITOR 341 295 398 344 %red percent-red 0 1 MONITOR 346 362 410 411 %square percent-square 0 1 @#$#@#$#@ WHAT IS IT? ----------- This is a model of population genetics. The population has three genes (size, color and shape), each with a dominant and recessive phenotype, that are passed along to offspring from a mated pair in a Mendelian fashion. The model runs in an equilibrium fashion if criteria for a Hardy-Weinberg equilibrium hold; that is, there is no mutation, no migration, no selection, random-mating and a large population. Students can manipulate the model so that there is selection against any one phenotype, there is preference by the female for one of the phenotypes, or there is a large or small population. HOW IT WORKS ------------ Organisms represented by colored shapes move randomly around the world. If a female of appropriate age (25) finds and unmated male, she mates and has one offspring. Offspring have 50% chance of being female, 50% chance of being a male. Traits of the mother and father are passed on to offspring in a Mendelian fashion. For each of the three genes, parents are homozygous dominant, hetrozygous or homozygous recessive. The model calculates the probability of possible allele combinations from the mother and father and assigns the genotypes to the offspring based on the calculated probability. Calculations are based on independent assortment of the genes. After a female mates, her age is reset to zero, such that she must wait a short time (25 time steps) before mating again. Offspring can mate in a similar fashion, passing on their genes to their own offspring. Carrying capacity is the limit to the populations size. After carrying capacity has been exceeded, al individuals have a likelihood of dying at a rate of [(population size - carrying capacity) / carrying capacity] Students can manipulate selection against any one phenotype by choosing the phenotype and setting a "selection_against_factor" that either slowly (low) or quickly (high number) eliminates that phenotype from the population. This occurs at all times, regardless of whether the carrying capacity has been exceeded or not. Selecting a phenotype and setting the "selection_against_factor" at zero is the same as choosing "no one". Students can manipulate whether females have a mate preference or not by choosing a phenotype that is preferred and setting the "%preference" to determine how often the un-preferred phenotype gets to mate. Setting the "%preference" to zero is the same as the female preferring "no one"; that is mating with both phenotypes equally. HOW TO USE IT ------------- Students select a starting population size, as well as carrying capacity for the population. Students can then select the approximate % of the population that will have the recessive phenotype (q2) for each gene. The model then calculates the approximate number of individuals in the population that are heterozygous (2pq) and homozygous dominant (p2) such tha the starting population is in an equilibrium. Students can manipulate selection against any one phenotype by choosing the phenotype and setting a "selection_against_fator" that either slowly (low) or quickly (high number) eliminates that phenotype from the population. Students can manipulate whether females have a mate preference or not by choosing a phenotype that is preferred and setting the "%preference" to determine how often the un-preferred phenotype gets to mate. THINGS TO NOTICE ---------------- Note that the model runs at an equilibrium (that is, the percentages of the phenotypes do not change over time) if there is no selection, random mating, and the population is large enough. THINGS TO TRY ------------- Does the model run at equilibium for all starting phenotype percentages? What happens if the population is small? What happens if you select against a phenotype? What happens if you have mate preference for one phenotype over another? What happens if you change these while the model is running? Can you reverse a trend? How long does it take to remove a phenotype completely from the model under each circumstance? EXTENDING THE MODEL ------------------- How might you change the model to include mutation and migration? How might you code the model so males have to be of a certain age to mate? Code could be wrritten in the model to include organisms dying after a certain age or after they have had a certin number of offspring. 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 -------------- Other models of population genetics can be found at http://ccl.northwestern.edu/netlogo/models/community/sheep-selection (Ed Hazzard) http://ccl.northwestern.edu/netlogo/models/community/sheep-fussyfemales (Ed Hazzard) http://ccl.northwestern.edu/ProbLab/Genetics.html After looking at the code for sheep-selection and sheep-fussyfemales, I think these models have a problem in that the offspring can inherit genes from more than one father. CREDITS AND REFERENCES ---------------------- This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references. @#$#@#$#@ 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 30 30 240 circle 2 false 0 Circle -7500403 true true 16 16 270 Circle -16777216 true false 46 46 210 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 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 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 60 270 150 0 240 270 15 105 285 105 Polygon -7500403 true true 75 120 105 210 195 210 225 120 150 75 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 @#$#@#$#@ @#$#@#$#@ @#$#@#$#@ @#$#@#$#@