<?xml version="1.0" encoding="utf-8"?><model version="NetLogo 7.0.4" snapToGrid="false" nlw-version="2.15.3 (73db3270)">
  <code><![CDATA[breed [ households household ]
breed [ responders responder ]
turtles-own [
  resilience
  damaged
  connected
  needs-help
  helping
]
patches-own [
  infrastructure
  destroyed
]

globals [
  disaster-tick
  disaster-happened
]

to setup
  clear-all
  set disaster-tick 0
  set disaster-happened false
  ask patches [
    set destroyed false
    set infrastructure 100
    recolor
  ]
  create-households initial-households [
    setxy random-xcor random-ycor
    set color 14
    set resilience 100
    set damaged false
    set connected true
    set needs-help false
    set helping false
  ]
  create-responders initial-responders [
    setxy random-xcor random-ycor
    set color 43
    set resilience 100
    set damaged false
    set connected true
    set needs-help false
    set helping false
  ]
  reset-ticks
end

to go
  ; trigger the disaster once
  if not disaster-happened and ticks >= disaster-tick [
    trigger-disaster
  ]

  ; households: recover, help neighbors, get helped
  ask households [
    ; lose resilience if damaged and not helped
    if damaged [
      set resilience resilience - (100 - resilience) * 0.05
    ]
    ; recover resilience over time, faster if connected to infrastructure
    let recovery-rate 0.02
    if connected [ set recovery-rate recovery-rate + 0.03 ]
    set resilience min (list 100 (resilience + (100 - resilience) * recovery-rate))
    ; if resilience drops below threshold, household needs help
    if resilience < 40 [ set needs-help true ]
    if resilience > 60 [ set needs-help false ]
    ; households help nearby damaged neighbors
    if needs-help [
      let helper one-of (other households-on neighbors) with [ not needs-help and resilience > 60 ]
      if helper != nobody [
        ask helper [
          set helping true
          set resilience resilience - 5
        ]
        set resilience min (list 100 (resilience + 8))
        set helping false
      ]
    ]
    ; if resilience hits 0, household is "lost" (absorbing)
    if resilience <= 0 [
      set color 12
      set damaged true
      set needs-help false
    ]
    recolor-household
  ]

  ; responders: move toward damaged households, repair infrastructure
  ask responders [
    let target one-of households with [ damaged and resilience > 0 ]
    if target != nobody [
      face target
      fd 1
      if distance target < 1.5 [
        ; help the household
        ask target [
          set resilience min (list 100 (resilience + 15))
          if resilience > 40 [ set damaged false ]
        ]
      ]
    ]
    ; repair infrastructure on current patch
    if [ destroyed ] of patch-here [
      let current-inf [ infrastructure ] of patch-here
      let new-inf min (list 100 (current-inf + repair-speed))
      ask patch-here [ set infrastructure new-inf ]
      if new-inf >= 100 [
        ask patch-here [ set destroyed false ]
      ]
    ]
  ]

  ; patches: infrastructure slowly degrades if destroyed, households reconnect
  ask patches [
    if destroyed [
      set infrastructure max (list 0 (infrastructure - 2))
    ]
    recolor
  ]
  ask households [
    if [ infrastructure ] of patch-here > 50 [ set connected true ]
    if [ infrastructure ] of patch-here <= 50 [ set connected false ]
  ]

  tick
end

to trigger-disaster
  set disaster-happened true
  ; destroy a random cluster of patches
  let epicenter one-of patches
  ask patches with [ distance epicenter <= disaster-radius ] [
    set destroyed true
    set infrastructure 0
  ]
  ; damage households on destroyed patches
  ask households with [ [ destroyed ] of patch-here ] [
    set damaged true
    set resilience resilience * 0.3
    set needs-help true
  ]
end

to recolor
  if destroyed [
    set pcolor 12
  ]
  if not destroyed [
    set pcolor scale-color green infrastructure 0 100
  ]
end

to-report resilient-count
  report count households with [ resilience > 60 ]
end

to-report lost-count
  report count households with [ resilience <= 0 ]
end

to-report avg-resilience
  ifelse any? households [
    report mean [ resilience ] of households
  ] [
    report 0
  ]
end

to recolor-household
  if resilience <= 0 [
    set color 12
  ]
  ifelse resilience > 60 [
    set color 14
  ] [
    ifelse resilience > 30 [
      set color 51
    ] [
      set color 49
    ]
  ]
end]]></code>
  <widgets>
    <view x="460" wrappingAllowedX="true" y="10" frameRate="30" minPycor="-20" height="542" showTickCounter="true" patchSize="13" fontSize="10" wrappingAllowedY="true" width="541" tickCounterLabel="ticks" maxPycor="20" updateMode="0" maxPxcor="20" minPxcor="-20"/>
    <button x="5" y="10" height="40" disableUntilTicks="false" forever="false" kind="Observer" width="220" display="Setup">setup</button>
    <button x="5" y="55" height="40" disableUntilTicks="true" forever="true" kind="Observer" width="220" display="Go">go</button>
    <slider x="5" step="5" y="100" max="100" width="220" display="initial-households" height="50" min="10" direction="Horizontal" default="50" variable="initial-households" units="households"/>
    <slider x="5" step="1" y="155" max="20" width="220" display="initial-responders" height="50" min="1" direction="Horizontal" default="5" variable="initial-responders" units="responders"/>
    <slider x="5" step="1" y="210" max="8" width="220" display="disaster-radius" height="50" min="2" direction="Horizontal" default="4" variable="disaster-radius" units="patches"/>
    <slider x="5" step="1" y="265" max="20" width="220" display="repair-speed" height="50" min="1" direction="Horizontal" default="5" variable="repair-speed" units="pts/tick"/>
    <monitor x="5" precision="0" y="320" height="60" fontSize="11" width="220" display="Households resilient (&gt;60)"><![CDATA[count households with [ resilience &gt; 60 ]]]></monitor>
    <monitor x="5" precision="0" y="385" height="60" fontSize="11" width="220" display="Households lost (resilience=0)"><![CDATA[count households with [ resilience &lt;= 0 ]]]></monitor>
    <monitor x="5" precision="1" y="450" height="60" fontSize="11" width="220" display="Avg resilience">ifelse-value any? households [ mean [ resilience ] of households ] [ 0 ]</monitor>
    <note x="5" y="515" backgroundDark="0" fontSize="11" width="220" markdown="false" height="30" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">Community Resilience After Disasters

An illustrative, uncalibrated model of how a small community recovers after a localized disaster. Households lose resilience when damaged; they recover over time, faster when connected to intact infrastructure. Responders move to damaged households and repair destroyed infrastructure. Neighbors help each other when possible.

Controls:
- initial-households: number of households (10-100)
- initial-responders: number of responders (1-20)
- disaster-radius: radius of the disaster zone (2-8 patches)
- repair-speed: how fast responders repair infrastructure (1-20 pts/tick)

The disaster triggers at tick 0. Ticks continue after the system reaches an absorbing state.</note>
    <plot x="230" autoPlotX="true" yMax="100" autoPlotY="true" yAxis="count / avg" y="10" xMin="0" height="200" legend="true" xMax="200" yMin="0" width="220" xAxis="tick" display="Community Resilience Over Time">
      <setup/>
      <update/>
      <pen interval="1" mode="0" display="Resilient households" color="-10899396" legend="true">
        <setup/>
        <update>plot resilient-count</update>
      </pen>
      <pen interval="1" mode="0" display="Lost households" color="-2674135" legend="true">
        <setup/>
        <update>plot lost-count</update>
      </pen>
      <pen interval="1" mode="0" display="Avg resilience" color="-13345367" legend="true">
        <setup/>
        <update>plot avg-resilience</update>
      </pen>
    </plot>
  </widgets>
  <info><![CDATA[# Community Resilience After Disasters

**Category:** Social Sciences
**Status:** Illustrative and uncalibrated. This is a teaching model, not a scientifically validated result.

## Overview

This model simulates how a small community of households recovers after a localized disaster (e.g., a flood, earthquake, or storm). The key idea is that **resilience** — a household's capacity to cope and recover — is not fixed. It erodes when a household is damaged, and it recovers over time, faster when the household is connected to intact local infrastructure.

## Mechanisms

1. **Disaster trigger.** At tick 0, a circular zone of radius `disaster-radius` is destroyed. All patches in the zone lose their infrastructure, and all households on those patches are damaged (resilience drops to 30% of its previous value).

2. **Household recovery.** Each tick, every household's resilience moves toward 100 at a base rate of 2%. If the household is connected to intact infrastructure (patch infrastructure > 50), the recovery rate increases by 3%. If a household is damaged and not being helped, it loses an additional 5% of its remaining resilience gap each tick.

3. **Mutual aid.** Households with resilience > 60 can help a neighboring household that needs help (resilience < 40). The helper loses 5 resilience; the helped household gains 8.

4. **Responders.** Responders move toward the nearest damaged household and, when close, boost that household's resilience by 15. They also repair destroyed infrastructure on their current patch at `repair-speed` points per tick.

5. **Infrastructure.** Destroyed patches lose 2 infrastructure points per tick (degradation). When a patch's infrastructure reaches 100, it is no longer considered destroyed. Households on patches with infrastructure > 50 are "connected" and recover faster.

6. **Absorbing state.** A household whose resilience reaches 0 is "lost" (shown in dark red). It no longer recovers or helps others. Ticks continue after all households have reached an absorbing state so the plot can show the full trajectory.

## Controls

| Widget | Range | Default | Meaning |
|---|---|---|---|
| initial-households | 10–100 | 50 | Number of households in the community |
| initial-responders | 1–20 | 5 | Number of emergency responders |
| disaster-radius | 2–8 | 4 | Radius (in patches) of the disaster zone |
| repair-speed | 1–20 | 5 | Infrastructure points restored per tick by a responder |

## Monitors and Plots

- **Households resilient (>60):** count of households with resilience above 60.
- **Households lost (resilience=0):** count of households that have been completely overwhelmed.
- **Avg resilience:** mean resilience across all surviving households.
- **Plot:** three pens tracking resilient households (green), lost households (red), and average resilience (blue) over time.

## Assumptions and Limitations

- The world is a small toroidal grid (41×41 patches) with a bounded population (≤100 households, ≤20 responders).
- Resilience is a single scalar (0–100) that abstracts over many real-world factors (income, social capital, physical damage, etc.).
- The disaster is a single circular event at tick 0; there is no secondary damage, no new disasters, and no migration.
- Responders are identical and unlimited in capacity; they do not fatigue.
- Infrastructure is a single value per patch; there is no network topology.
- All parameters are illustrative and **not calibrated** to any real disaster. The model is intended for teaching and exploration, not prediction.

## How to Use

1. Press **Setup** to place households and responders and reset the clock.
2. Adjust the sliders if you want a different community size, responder count, disaster size, or repair speed.
3. Press **Go** to run the simulation. The disaster triggers at tick 0; watch the plot to see how the community's resilience evolves.
4. Press **Setup** again to reset and try a different configuration.
]]></info>
  <turtleShapes>
    <shape name="default" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="5"/>
        <point x="40" y="250"/>
        <point x="150" y="205"/>
        <point x="260" y="250"/>
      </polygon>
    </shape>
    <shape name="airplane" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="0"/>
        <point x="135" y="15"/>
        <point x="120" y="60"/>
        <point x="120" y="105"/>
        <point x="15" y="165"/>
        <point x="15" y="195"/>
        <point x="120" y="180"/>
        <point x="135" y="240"/>
        <point x="105" y="270"/>
        <point x="120" y="285"/>
        <point x="150" y="270"/>
        <point x="180" y="285"/>
        <point x="210" y="270"/>
        <point x="165" y="240"/>
        <point x="180" y="180"/>
        <point x="285" y="195"/>
        <point x="285" y="165"/>
        <point x="180" y="105"/>
        <point x="180" y="60"/>
        <point x="165" y="15"/>
      </polygon>
    </shape>
    <shape name="arrow" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="0"/>
        <point x="0" y="150"/>
        <point x="105" y="150"/>
        <point x="105" y="293"/>
        <point x="195" y="293"/>
        <point x="195" y="150"/>
        <point x="300" y="150"/>
      </polygon>
    </shape>
    <shape name="box" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="285"/>
        <point x="285" y="225"/>
        <point x="285" y="75"/>
        <point x="150" y="135"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="135"/>
        <point x="15" y="75"/>
        <point x="150" y="15"/>
        <point x="285" y="75"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="15" y="75"/>
        <point x="15" y="225"/>
        <point x="150" y="285"/>
        <point x="150" y="135"/>
      </polygon>
      <line endX="150" startY="285" marked="false" color="255" endY="135" startX="150"/>
      <line endX="15" startY="135" marked="false" color="255" endY="75" startX="150"/>
      <line endX="285" startY="135" marked="false" color="255" endY="75" startX="150"/>
    </shape>
    <shape name="bug" rotatable="true" editableColorIndex="0">
      <circle x="96" y="182" marked="true" color="-1920102913" diameter="108" filled="true"/>
      <circle x="110" y="127" marked="true" color="-1920102913" diameter="80" filled="true"/>
      <circle x="110" y="75" marked="true" color="-1920102913" diameter="80" filled="true"/>
      <line endX="80" startY="100" marked="true" color="-1920102913" endY="30" startX="150"/>
      <line endX="220" startY="100" marked="true" color="-1920102913" endY="30" startX="150"/>
    </shape>
    <shape name="butterfly" rotatable="true" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="165"/>
        <point x="209" y="199"/>
        <point x="225" y="225"/>
        <point x="225" y="255"/>
        <point x="195" y="270"/>
        <point x="165" y="255"/>
        <point x="150" y="240"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="165"/>
        <point x="89" y="198"/>
        <point x="75" y="225"/>
        <point x="75" y="255"/>
        <point x="105" y="270"/>
        <point x="135" y="255"/>
        <point x="150" y="240"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="139" y="148"/>
        <point x="100" y="105"/>
        <point x="55" y="90"/>
        <point x="25" y="90"/>
        <point x="10" y="105"/>
        <point x="10" y="135"/>
        <point x="25" y="180"/>
        <point x="40" y="195"/>
        <point x="85" y="194"/>
        <point x="139" y="163"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="162" y="150"/>
        <point x="200" y="105"/>
        <point x="245" y="90"/>
        <point x="275" y="90"/>
        <point x="290" y="105"/>
        <point x="290" y="135"/>
        <point x="275" y="180"/>
        <point x="260" y="195"/>
        <point x="215" y="195"/>
        <point x="162" y="165"/>
      </polygon>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="255"/>
        <point x="135" y="225"/>
        <point x="120" y="150"/>
        <point x="135" y="120"/>
        <point x="150" y="105"/>
        <point x="165" y="120"/>
        <point x="180" y="150"/>
        <point x="165" y="225"/>
      </polygon>
      <circle x="135" y="90" marked="false" color="255" diameter="30" filled="true"/>
      <line endX="195" startY="105" marked="false" color="255" endY="60" startX="150"/>
      <line endX="105" startY="105" marked="false" color="255" endY="60" startX="150"/>
    </shape>
    <shape name="car" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="300" y="180"/>
        <point x="279" y="164"/>
        <point x="261" y="144"/>
        <point x="240" y="135"/>
        <point x="226" y="132"/>
        <point x="213" y="106"/>
        <point x="203" y="84"/>
        <point x="185" y="63"/>
        <point x="159" y="50"/>
        <point x="135" y="50"/>
        <point x="75" y="60"/>
        <point x="0" y="150"/>
        <point x="0" y="165"/>
        <point x="0" y="225"/>
        <point x="300" y="225"/>
        <point x="300" y="180"/>
      </polygon>
      <circle x="180" y="180" marked="false" color="255" diameter="90" filled="true"/>
      <circle x="30" y="180" marked="false" color="255" diameter="90" filled="true"/>
      <polygon color="255" filled="true" marked="false">
        <point x="162" y="80"/>
        <point x="132" y="78"/>
        <point x="134" y="135"/>
        <point x="209" y="135"/>
        <point x="194" y="105"/>
        <point x="189" y="96"/>
        <point x="180" y="89"/>
      </polygon>
      <circle x="47" y="195" marked="true" color="-1920102913" diameter="58" filled="true"/>
      <circle x="195" y="195" marked="true" color="-1920102913" diameter="58" filled="true"/>
    </shape>
    <shape name="circle" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"/>
    </shape>
    <shape name="circle 2" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"/>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"/>
    </shape>
    <shape name="cow" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="200" y="193"/>
        <point x="197" y="249"/>
        <point x="179" y="249"/>
        <point x="177" y="196"/>
        <point x="166" y="187"/>
        <point x="140" y="189"/>
        <point x="93" y="191"/>
        <point x="78" y="179"/>
        <point x="72" y="211"/>
        <point x="49" y="209"/>
        <point x="48" y="181"/>
        <point x="37" y="149"/>
        <point x="25" y="120"/>
        <point x="25" y="89"/>
        <point x="45" y="72"/>
        <point x="103" y="84"/>
        <point x="179" y="75"/>
        <point x="198" y="76"/>
        <point x="252" y="64"/>
        <point x="272" y="81"/>
        <point x="293" y="103"/>
        <point x="285" y="121"/>
        <point x="255" y="121"/>
        <point x="242" y="118"/>
        <point x="224" y="167"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="73" y="210"/>
        <point x="86" y="251"/>
        <point x="62" y="249"/>
        <point x="48" y="208"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="25" y="114"/>
        <point x="16" y="195"/>
        <point x="9" y="204"/>
        <point x="23" y="213"/>
        <point x="25" y="200"/>
        <point x="39" y="123"/>
      </polygon>
    </shape>
    <shape name="cylinder" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"/>
    </shape>
    <shape name="dot" rotatable="false" editableColorIndex="0">
      <circle x="90" y="90" marked="true" color="-1920102913" diameter="120" filled="true"/>
    </shape>
    <shape name="face happy" rotatable="false" editableColorIndex="0">
      <circle x="8" y="8" marked="true" color="-1920102913" diameter="285" filled="true"/>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="255"/>
        <point x="90" y="239"/>
        <point x="62" y="213"/>
        <point x="47" y="191"/>
        <point x="67" y="179"/>
        <point x="90" y="203"/>
        <point x="109" y="218"/>
        <point x="150" y="225"/>
        <point x="192" y="218"/>
        <point x="210" y="203"/>
        <point x="227" y="181"/>
        <point x="251" y="194"/>
        <point x="236" y="217"/>
        <point x="212" y="240"/>
      </polygon>
    </shape>
    <shape name="face neutral" rotatable="false" editableColorIndex="0">
      <circle x="8" y="7" marked="true" color="-1920102913" diameter="285" filled="true"/>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <rectangle endX="240" startY="195" marked="false" color="255" endY="225" startX="60" filled="true"/>
    </shape>
    <shape name="face sad" rotatable="false" editableColorIndex="0">
      <circle x="8" y="8" marked="true" color="-1920102913" diameter="285" filled="true"/>
      <circle x="60" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <circle x="180" y="75" marked="false" color="255" diameter="60" filled="true"/>
      <polygon color="255" filled="true" marked="false">
        <point x="150" y="168"/>
        <point x="90" y="184"/>
        <point x="62" y="210"/>
        <point x="47" y="232"/>
        <point x="67" y="244"/>
        <point x="90" y="220"/>
        <point x="109" y="205"/>
        <point x="150" y="198"/>
        <point x="192" y="205"/>
        <point x="210" y="220"/>
        <point x="227" y="242"/>
        <point x="251" y="229"/>
        <point x="236" y="206"/>
        <point x="212" y="183"/>
      </polygon>
    </shape>
    <shape name="fish" rotatable="false" editableColorIndex="0">
      <polygon color="-1" filled="true" marked="false">
        <point x="44" y="131"/>
        <point x="21" y="87"/>
        <point x="15" y="86"/>
        <point x="0" y="120"/>
        <point x="15" y="150"/>
        <point x="0" y="180"/>
        <point x="13" y="214"/>
        <point x="20" y="212"/>
        <point x="45" y="166"/>
      </polygon>
      <polygon color="-1" filled="true" marked="false">
        <point x="135" y="195"/>
        <point x="119" y="235"/>
        <point x="95" y="218"/>
        <point x="76" y="210"/>
        <point x="46" y="204"/>
        <point x="60" y="165"/>
      </polygon>
      <polygon color="-1" filled="true" marked="false">
        <point x="75" y="45"/>
        <point x="83" y="77"/>
        <point x="71" y="103"/>
        <point x="86" y="114"/>
        <point x="166" y="78"/>
        <point x="135" y="60"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="30" y="136"/>
        <point x="151" y="77"/>
        <point x="226" y="81"/>
        <point x="280" y="119"/>
        <point x="292" y="146"/>
        <point x="292" y="160"/>
        <point x="287" y="170"/>
        <point x="270" y="195"/>
        <point x="195" y="210"/>
        <point x="151" y="212"/>
        <point x="30" y="166"/>
      </polygon>
      <circle x="215" y="106" marked="false" color="255" diameter="30" filled="true"/>
    </shape>
    <shape name="flag" rotatable="false" editableColorIndex="0">
      <rectangle endX="75" startY="15" marked="true" color="-1920102913" endY="300" startX="60" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="90" y="150"/>
        <point x="270" y="90"/>
        <point x="90" y="30"/>
      </polygon>
      <line endX="90" startY="135" marked="true" color="-1920102913" endY="135" startX="75"/>
      <line endX="90" startY="45" marked="true" color="-1920102913" endY="45" startX="75"/>
    </shape>
    <shape name="flower" rotatable="false" editableColorIndex="0">
      <polygon color="1504722175" filled="true" marked="false">
        <point x="135" y="120"/>
        <point x="165" y="165"/>
        <point x="180" y="210"/>
        <point x="180" y="240"/>
        <point x="150" y="300"/>
        <point x="165" y="300"/>
        <point x="195" y="240"/>
        <point x="195" y="195"/>
        <point x="165" y="135"/>
      </polygon>
      <circle x="85" y="132" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="130" y="147" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="192" y="85" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="85" y="40" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="177" y="40" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="177" y="132" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="70" y="85" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="130" y="25" marked="true" color="-1920102913" diameter="38" filled="true"/>
      <circle x="96" y="51" marked="true" color="-1920102913" diameter="108" filled="true"/>
      <circle x="113" y="68" marked="false" color="255" diameter="74" filled="true"/>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="189" y="233"/>
        <point x="219" y="188"/>
        <point x="249" y="173"/>
        <point x="279" y="188"/>
        <point x="234" y="218"/>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="180" y="255"/>
        <point x="150" y="210"/>
        <point x="105" y="210"/>
        <point x="75" y="240"/>
        <point x="135" y="240"/>
      </polygon>
    </shape>
    <shape name="house" rotatable="false" editableColorIndex="0">
      <rectangle endX="255" startY="120" marked="true" color="-1920102913" endY="285" startX="45" filled="true"/>
      <rectangle endX="180" startY="210" marked="false" color="255" endY="285" startX="120" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="15" y="120"/>
        <point x="150" y="15"/>
        <point x="285" y="120"/>
      </polygon>
      <line endX="270" startY="120" marked="false" color="255" endY="120" startX="30"/>
    </shape>
    <shape name="leaf" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="210"/>
        <point x="135" y="195"/>
        <point x="120" y="210"/>
        <point x="60" y="210"/>
        <point x="30" y="195"/>
        <point x="60" y="180"/>
        <point x="60" y="165"/>
        <point x="15" y="135"/>
        <point x="30" y="120"/>
        <point x="15" y="105"/>
        <point x="40" y="104"/>
        <point x="45" y="90"/>
        <point x="60" y="90"/>
        <point x="90" y="105"/>
        <point x="105" y="120"/>
        <point x="120" y="120"/>
        <point x="105" y="60"/>
        <point x="120" y="60"/>
        <point x="135" y="30"/>
        <point x="150" y="15"/>
        <point x="165" y="30"/>
        <point x="180" y="60"/>
        <point x="195" y="60"/>
        <point x="180" y="120"/>
        <point x="195" y="120"/>
        <point x="210" y="105"/>
        <point x="240" y="90"/>
        <point x="255" y="90"/>
        <point x="263" y="104"/>
        <point x="285" y="105"/>
        <point x="270" y="120"/>
        <point x="285" y="135"/>
        <point x="240" y="165"/>
        <point x="240" y="180"/>
        <point x="270" y="195"/>
        <point x="240" y="210"/>
        <point x="180" y="210"/>
        <point x="165" y="195"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="195"/>
        <point x="135" y="240"/>
        <point x="120" y="255"/>
        <point x="105" y="255"/>
        <point x="105" y="285"/>
        <point x="135" y="285"/>
        <point x="165" y="240"/>
        <point x="165" y="195"/>
      </polygon>
    </shape>
    <shape name="line" rotatable="true" editableColorIndex="0">
      <line endX="150" startY="0" marked="true" color="-1920102913" endY="300" startX="150"/>
    </shape>
    <shape name="line half" rotatable="true" editableColorIndex="0">
      <line endX="150" startY="0" marked="true" color="-1920102913" endY="150" startX="150"/>
    </shape>
    <shape name="pentagon" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="15"/>
        <point x="15" y="120"/>
        <point x="60" y="285"/>
        <point x="240" y="285"/>
        <point x="285" y="120"/>
      </polygon>
    </shape>
    <shape name="person" rotatable="false" editableColorIndex="0">
      <circle x="110" y="5" marked="true" color="-1920102913" diameter="80" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="105" y="90"/>
        <point x="120" y="195"/>
        <point x="90" y="285"/>
        <point x="105" y="300"/>
        <point x="135" y="300"/>
        <point x="150" y="225"/>
        <point x="165" y="300"/>
        <point x="195" y="300"/>
        <point x="210" y="285"/>
        <point x="180" y="195"/>
        <point x="195" y="90"/>
      </polygon>
      <rectangle endX="172" startY="79" marked="true" color="-1920102913" endY="94" startX="127" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="195" y="90"/>
        <point x="240" y="150"/>
        <point x="225" y="180"/>
        <point x="165" y="105"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="105" y="90"/>
        <point x="60" y="150"/>
        <point x="75" y="180"/>
        <point x="135" y="105"/>
      </polygon>
    </shape>
    <shape name="plant" rotatable="false" editableColorIndex="0">
      <rectangle endX="165" startY="90" marked="true" color="-1920102913" endY="300" startX="135" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="255"/>
        <point x="90" y="210"/>
        <point x="45" y="195"/>
        <point x="75" y="255"/>
        <point x="135" y="285"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="255"/>
        <point x="210" y="210"/>
        <point x="255" y="195"/>
        <point x="225" y="255"/>
        <point x="165" y="285"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="180"/>
        <point x="90" y="135"/>
        <point x="45" y="120"/>
        <point x="75" y="180"/>
        <point x="135" y="210"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="180"/>
        <point x="165" y="210"/>
        <point x="225" y="180"/>
        <point x="255" y="120"/>
        <point x="210" y="135"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="105"/>
        <point x="90" y="60"/>
        <point x="45" y="45"/>
        <point x="75" y="105"/>
        <point x="135" y="135"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="165" y="105"/>
        <point x="165" y="135"/>
        <point x="225" y="105"/>
        <point x="255" y="45"/>
        <point x="210" y="60"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="135" y="90"/>
        <point x="120" y="45"/>
        <point x="150" y="15"/>
        <point x="180" y="45"/>
        <point x="165" y="90"/>
      </polygon>
    </shape>
    <shape name="sheep" rotatable="false" editableColorIndex="15">
      <circle x="203" y="65" marked="true" color="-1" diameter="88" filled="true"/>
      <circle x="70" y="65" marked="true" color="-1" diameter="162" filled="true"/>
      <circle x="150" y="105" marked="true" color="-1" diameter="120" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="218" y="120"/>
        <point x="240" y="165"/>
        <point x="255" y="165"/>
        <point x="278" y="120"/>
      </polygon>
      <circle x="214" y="72" marked="false" color="-1920102913" diameter="67" filled="true"/>
      <rectangle endX="179" startY="223" marked="true" color="-1" endY="298" startX="164" filled="true"/>
      <polygon color="-1" filled="true" marked="true">
        <point x="45" y="285"/>
        <point x="30" y="285"/>
        <point x="30" y="240"/>
        <point x="15" y="195"/>
        <point x="45" y="210"/>
      </polygon>
      <circle x="3" y="83" marked="true" color="-1" diameter="150" filled="true"/>
      <rectangle endX="80" startY="221" marked="true" color="-1" endY="296" startX="65" filled="true"/>
      <polygon color="-1" filled="true" marked="true">
        <point x="195" y="285"/>
        <point x="210" y="285"/>
        <point x="210" y="240"/>
        <point x="240" y="210"/>
        <point x="195" y="210"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="276" y="85"/>
        <point x="285" y="105"/>
        <point x="302" y="99"/>
        <point x="294" y="83"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="false">
        <point x="219" y="85"/>
        <point x="210" y="105"/>
        <point x="193" y="99"/>
        <point x="201" y="83"/>
      </polygon>
    </shape>
    <shape name="square" rotatable="false" editableColorIndex="0">
      <rectangle endX="270" startY="30" marked="true" color="-1920102913" endY="270" startX="30" filled="true"/>
    </shape>
    <shape name="square 2" rotatable="false" editableColorIndex="0">
      <rectangle endX="270" startY="30" marked="true" color="-1920102913" endY="270" startX="30" filled="true"/>
      <rectangle endX="240" startY="60" marked="false" color="255" endY="240" startX="60" filled="true"/>
    </shape>
    <shape name="star" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="151" y="1"/>
        <point x="185" y="108"/>
        <point x="298" y="108"/>
        <point x="207" y="175"/>
        <point x="242" y="282"/>
        <point x="151" y="216"/>
        <point x="59" y="282"/>
        <point x="94" y="175"/>
        <point x="3" y="108"/>
        <point x="116" y="108"/>
      </polygon>
    </shape>
    <shape name="target" rotatable="false" editableColorIndex="0">
      <circle x="0" y="0" marked="true" color="-1920102913" diameter="300" filled="true"/>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"/>
      <circle x="60" y="60" marked="true" color="-1920102913" diameter="180" filled="true"/>
      <circle x="90" y="90" marked="false" color="255" diameter="120" filled="true"/>
      <circle x="120" y="120" marked="true" color="-1920102913" diameter="60" filled="true"/>
    </shape>
    <shape name="tree" rotatable="false" editableColorIndex="0">
      <circle x="118" y="3" marked="true" color="-1920102913" diameter="94" filled="true"/>
      <rectangle endX="180" startY="195" marked="false" color="-1653716737" endY="300" startX="120" filled="true"/>
      <circle x="65" y="21" marked="true" color="-1920102913" diameter="108" filled="true"/>
      <circle x="116" y="41" marked="true" color="-1920102913" diameter="127" filled="true"/>
      <circle x="45" y="90" marked="true" color="-1920102913" diameter="120" filled="true"/>
      <circle x="104" y="74" marked="true" color="-1920102913" diameter="152" filled="true"/>
    </shape>
    <shape name="triangle" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="30"/>
        <point x="15" y="255"/>
        <point x="285" y="255"/>
      </polygon>
    </shape>
    <shape name="triangle 2" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="150" y="30"/>
        <point x="15" y="255"/>
        <point x="285" y="255"/>
      </polygon>
      <polygon color="255" filled="true" marked="false">
        <point x="151" y="99"/>
        <point x="225" y="223"/>
        <point x="75" y="224"/>
      </polygon>
    </shape>
    <shape name="truck" rotatable="false" editableColorIndex="0">
      <rectangle endX="195" startY="45" marked="true" color="-1920102913" endY="187" startX="4" filled="true"/>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="296" y="193"/>
        <point x="296" y="150"/>
        <point x="259" y="134"/>
        <point x="244" y="104"/>
        <point x="208" y="104"/>
        <point x="207" y="194"/>
      </polygon>
      <rectangle endX="195" startY="60" marked="false" color="-1" endY="105" startX="195" filled="true"/>
      <polygon color="255" filled="true" marked="false">
        <point x="238" y="112"/>
        <point x="252" y="141"/>
        <point x="219" y="141"/>
        <point x="218" y="112"/>
      </polygon>
      <circle x="234" y="174" marked="false" color="255" diameter="42" filled="true"/>
      <rectangle endX="214" startY="185" marked="true" color="-1920102913" endY="194" startX="181" filled="true"/>
      <circle x="144" y="174" marked="false" color="255" diameter="42" filled="true"/>
      <circle x="24" y="174" marked="false" color="255" diameter="42" filled="true"/>
      <circle x="24" y="174" marked="true" color="-1920102913" diameter="42" filled="false"/>
      <circle x="144" y="174" marked="true" color="-1920102913" diameter="42" filled="false"/>
      <circle x="234" y="174" marked="true" color="-1920102913" diameter="42" filled="false"/>
    </shape>
    <shape name="turtle" rotatable="true" editableColorIndex="0">
      <polygon color="1504722175" filled="true" marked="false">
        <point x="215" y="204"/>
        <point x="240" y="233"/>
        <point x="246" y="254"/>
        <point x="228" y="266"/>
        <point x="215" y="252"/>
        <point x="193" y="210"/>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="195" y="90"/>
        <point x="225" y="75"/>
        <point x="245" y="75"/>
        <point x="260" y="89"/>
        <point x="269" y="108"/>
        <point x="261" y="124"/>
        <point x="240" y="105"/>
        <point x="225" y="105"/>
        <point x="210" y="105"/>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="105" y="90"/>
        <point x="75" y="75"/>
        <point x="55" y="75"/>
        <point x="40" y="89"/>
        <point x="31" y="108"/>
        <point x="39" y="124"/>
        <point x="60" y="105"/>
        <point x="75" y="105"/>
        <point x="90" y="105"/>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="132" y="85"/>
        <point x="134" y="64"/>
        <point x="107" y="51"/>
        <point x="108" y="17"/>
        <point x="150" y="2"/>
        <point x="192" y="18"/>
        <point x="192" y="52"/>
        <point x="169" y="65"/>
        <point x="172" y="87"/>
      </polygon>
      <polygon color="1504722175" filled="true" marked="false">
        <point x="85" y="204"/>
        <point x="60" y="233"/>
        <point x="54" y="254"/>
        <point x="72" y="266"/>
        <point x="85" y="252"/>
        <point x="107" y="210"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="119" y="75"/>
        <point x="179" y="75"/>
        <point x="209" y="101"/>
        <point x="224" y="135"/>
        <point x="220" y="225"/>
        <point x="175" y="261"/>
        <point x="128" y="261"/>
        <point x="81" y="224"/>
        <point x="74" y="135"/>
        <point x="88" y="99"/>
      </polygon>
    </shape>
    <shape name="wheel" rotatable="false" editableColorIndex="0">
      <circle x="3" y="3" marked="true" color="-1920102913" diameter="294" filled="true"/>
      <circle x="30" y="30" marked="false" color="255" diameter="240" filled="true"/>
      <line endX="150" startY="285" marked="true" color="-1920102913" endY="15" startX="150"/>
      <line endX="285" startY="150" marked="true" color="-1920102913" endY="150" startX="15"/>
      <circle x="120" y="120" marked="true" color="-1920102913" diameter="60" filled="true"/>
      <line endX="79" startY="40" marked="true" color="-1920102913" endY="269" startX="216"/>
      <line endX="269" startY="84" marked="true" color="-1920102913" endY="221" startX="40"/>
      <line endX="269" startY="216" marked="true" color="-1920102913" endY="79" startX="40"/>
      <line endX="221" startY="40" marked="true" color="-1920102913" endY="269" startX="84"/>
    </shape>
    <shape name="wolf" rotatable="false" editableColorIndex="0">
      <polygon color="255" filled="true" marked="false">
        <point x="253" y="133"/>
        <point x="245" y="131"/>
        <point x="245" y="133"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="2" y="194"/>
        <point x="13" y="197"/>
        <point x="30" y="191"/>
        <point x="38" y="193"/>
        <point x="38" y="205"/>
        <point x="20" y="226"/>
        <point x="20" y="257"/>
        <point x="27" y="265"/>
        <point x="38" y="266"/>
        <point x="40" y="260"/>
        <point x="31" y="253"/>
        <point x="31" y="230"/>
        <point x="60" y="206"/>
        <point x="68" y="198"/>
        <point x="75" y="209"/>
        <point x="66" y="228"/>
        <point x="65" y="243"/>
        <point x="82" y="261"/>
        <point x="84" y="268"/>
        <point x="100" y="267"/>
        <point x="103" y="261"/>
        <point x="77" y="239"/>
        <point x="79" y="231"/>
        <point x="100" y="207"/>
        <point x="98" y="196"/>
        <point x="119" y="201"/>
        <point x="143" y="202"/>
        <point x="160" y="195"/>
        <point x="166" y="210"/>
        <point x="172" y="213"/>
        <point x="173" y="238"/>
        <point x="167" y="251"/>
        <point x="160" y="248"/>
        <point x="154" y="265"/>
        <point x="169" y="264"/>
        <point x="178" y="247"/>
        <point x="186" y="240"/>
        <point x="198" y="260"/>
        <point x="200" y="271"/>
        <point x="217" y="271"/>
        <point x="219" y="262"/>
        <point x="207" y="258"/>
        <point x="195" y="230"/>
        <point x="192" y="198"/>
        <point x="210" y="184"/>
        <point x="227" y="164"/>
        <point x="242" y="144"/>
        <point x="259" y="145"/>
        <point x="284" y="151"/>
        <point x="277" y="141"/>
        <point x="293" y="140"/>
        <point x="299" y="134"/>
        <point x="297" y="127"/>
        <point x="273" y="119"/>
        <point x="270" y="105"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="-1" y="195"/>
        <point x="14" y="180"/>
        <point x="36" y="166"/>
        <point x="40" y="153"/>
        <point x="53" y="140"/>
        <point x="82" y="131"/>
        <point x="134" y="133"/>
        <point x="159" y="126"/>
        <point x="188" y="115"/>
        <point x="227" y="108"/>
        <point x="236" y="102"/>
        <point x="238" y="98"/>
        <point x="268" y="86"/>
        <point x="269" y="92"/>
        <point x="281" y="87"/>
        <point x="269" y="103"/>
        <point x="269" y="113"/>
      </polygon>
    </shape>
    <shape name="x" rotatable="false" editableColorIndex="0">
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="270" y="75"/>
        <point x="225" y="30"/>
        <point x="30" y="225"/>
        <point x="75" y="270"/>
      </polygon>
      <polygon color="-1920102913" filled="true" marked="true">
        <point x="30" y="75"/>
        <point x="75" y="30"/>
        <point x="270" y="225"/>
        <point x="225" y="270"/>
      </polygon>
    </shape>
  </turtleShapes>
  <linkShapes>
    <shape name="default" curviness="0">
      <lines>
        <line x="-0.2" visible="false">
          <dash value="0"/>
          <dash value="1"/>
        </line>
        <line x="0" visible="true">
          <dash value="1"/>
          <dash value="0"/>
        </line>
        <line x="0.2" visible="false">
          <dash value="0"/>
          <dash value="1"/>
        </line>
      </lines>
      <indicator>
        <shape name="link direction" rotatable="true" editableColorIndex="0">
          <line endX="90" startY="150" marked="true" color="-1920102913" endY="180" startX="150"/>
          <line endX="210" startY="150" marked="true" color="-1920102913" endY="180" startX="150"/>
        </shape>
      </indicator>
    </shape>
  </linkShapes>
  <previewCommands>setup repeat 75 [ go ]</previewCommands>
</model>