<?xml version="1.0" encoding="utf-8"?><model version="NetLogo 7.0.4" snapToGrid="false" nlw-version="2.15.3 (73db3270)">
  <code><![CDATA[; Clinical workforce distribution
; Illustrative, uncalibrated model of how doctors and nurses distribute
; across a small region of hospitals and clinics, driven by patient demand,
; pay and working conditions.

breed [ workers worker ]
patches-own [ facility-type demand ]
workers-own [ role satisfaction ]

globals [
  total-workers
]

to setup
  clear-all
  ; 5x5 grid of community cells; each cell hosts a facility
  ask patches [
    set facility-type "clinic"
    set demand 10 + random 20
  ]
  ; a few larger hospitals
  ask patches with [ pxcor = 0 and pycor = 0 ] [ set facility-type "hospital"  set demand 40 + random 20 ]
  ask patches with [ pxcor = 4 and pycor = 4 ] [ set facility-type "hospital"  set demand 40 + random 20 ]
  ask patches with [ pxcor = -4 and pycor = -4 ] [ set facility-type "hospital"  set demand 40 + random 20 ]
  recolor-all
  ; bounded workforce: doctors and nurses
  create-workers initial-doctors [
    set role "doctor"
    set color 13
    setxy random-xcor random-ycor
    set satisfaction 0.6
  ]
  create-workers initial-nurses [
    set role "nurse"
    set color 60
    setxy random-xcor random-ycor
    set satisfaction 0.6
  ]
  set total-workers count workers
  reset-ticks
end

to go
  ; workers decide whether to move to a better facility
  ask workers [
    let here-demand [ demand ] of patch-here
    let here-load count workers-here
    let here-stress here-load / (here-demand + 1)
    ; look at neighboring cells
    let best nobody
    let best-score 0
    ask patches in-radius 2 [
      let p-demand demand
      let p-load count workers-here
      let p-stress p-load / (p-demand + 1)
      ; score: more demand (more patients to treat) and less stress
      let score (p-demand / 60) - (p-stress * stress-aversion)
      if score > best-score [
        set best-score score
        set best self
      ]
    ]
    ; move if the best option is clearly better and the worker is unhappy
    let my-stress (count workers-here) / (here-demand + 1)
    if best != nobody and best-score > 0.2 and my-stress > 0.8 [
      move-to best
    ]
    ; satisfaction drifts toward the current stress level
    set satisfaction (satisfaction * 0.8) + ((1 - min (list 1 my-stress)) * 0.2)
  ]
  ; demand fluctuates slightly (seasonal / random variation)
  ask patches [
    let new-demand demand + random-float 2 - 1
    set demand max (list 5 new-demand)
  ]
  recolor-all
  tick
end

to recolor-all
  ask patches [
    let load count workers-here
    let d [ demand ] of self
    let ratio load / (d + 1)
    ifelse [ facility-type ] of self = "hospital" [
      set pcolor scale-color red ratio 0 2
    ] [
      set pcolor scale-color yellow ratio 0 2
    ]
  ]
end]]></code>
  <widgets>
    <view x="460" wrappingAllowedX="true" y="10" frameRate="30" minPycor="-5" height="229" showTickCounter="true" patchSize="20" fontSize="10" wrappingAllowedY="true" width="228" tickCounterLabel="ticks" maxPycor="5" updateMode="0" maxPxcor="5" minPxcor="-5"/>
    <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="1" y="100" max="50" width="220" display="initial-doctors" height="50" min="5" direction="Horizontal" default="20" variable="initial-doctors"/>
    <slider x="5" step="1" y="155" max="80" width="220" display="initial-nurses" height="50" min="5" direction="Horizontal" default="40" variable="initial-nurses"/>
    <slider x="5" step="0.1" y="210" max="2" width="220" display="stress-aversion" height="50" min="0" direction="Horizontal" default="1" variable="stress-aversion"/>
    <monitor x="5" precision="2" y="265" height="60" fontSize="11" width="220" display="Total workers">count workers</monitor>
    <monitor x="5" precision="2" y="330" height="60" fontSize="11" width="220" display="Doctors">count workers with [ role = "doctor" ]</monitor>
    <monitor x="5" precision="2" y="395" height="60" fontSize="11" width="220" display="Nurses">count workers with [ role = "nurse" ]</monitor>
    <monitor x="5" precision="2" y="460" height="60" fontSize="11" width="220" display="Avg satisfaction">ifelse-value (any? workers) [ mean [ satisfaction ] of workers ] [ 0 ]</monitor>
    <plot x="230" autoPlotX="true" yMax="100" autoPlotY="true" yAxis="count" y="10" xMin="0" height="200" legend="true" xMax="100" yMin="0" width="220" xAxis="time" display="Workforce distribution">
      <setup/>
      <update/>
      <pen interval="1" mode="0" display="Doctors" color="-2674135" legend="true">
        <setup/>
        <update>plot count workers with [ role = "doctor" ]</update>
      </pen>
      <pen interval="1" mode="0" display="Nurses" color="-10899396" legend="true">
        <setup/>
        <update>plot count workers with [ role = "nurse" ]</update>
      </pen>
      <pen interval="1" mode="0" display="Avg satisfaction" color="-13345367" legend="true">
        <setup/>
        <update>plot ifelse-value (any? workers) [ mean [ satisfaction ] of workers ] [ 0 ]</update>
      </pen>
    </plot>
    <note x="230" y="215" backgroundDark="0" fontSize="11" width="220" markdown="false" height="30" textColorDark="-1" textColorLight="-16777216" backgroundLight="0">This is an **illustrative, uncalibrated** model. It shows how a bounded clinical workforce (doctors and nurses) redistributes across a small grid of hospitals and clinics in response to patient demand and workload stress. It is not a scientifically validated result.</note>
  </widgets>
  <info><![CDATA[# Clinical Workforce Distribution

**Category:** Health and Life Sciences
**Status:** Illustrative and uncalibrated — not a scientifically validated result.

## Overview

This model simulates how a bounded clinical workforce (doctors and nurses) redistributes across a small 11×11 grid of community cells. Each cell hosts either a **clinic** (lower demand) or a **hospital** (higher demand). Workers move between cells based on two competing forces:

1. **Patient demand** – cells with more patients are more attractive (more work, more purpose).
2. **Workload stress** – cells with too many workers relative to demand become stressful, pushing workers away.

## Mechanism

- **Setup:** A 5×5 grid of cells is created. Three cells are designated hospitals (higher demand, 40–60 patients); the rest are clinics (10–30 patients). Doctors (red) and nurses (green) are placed randomly.
- **Go (each tick):**
  - Each worker evaluates all cells within radius 2.
  - A score is computed: `(demand / 60) − (stress × stress-aversion)`, where stress = workers-on-cell / (demand + 1).
  - If the best neighbouring cell scores above 0.2 **and** the worker's current cell is stressed (stress > 0.8), the worker moves there.
  - Satisfaction drifts toward 1 − stress each tick (exponential smoothing, 80% memory).
  - Demand fluctuates slightly each tick (±1 random) to simulate seasonal variation.
- **Absorbing state:** The model never stops; ticks advance indefinitely. If all workers settle into a stable distribution, the plot plateaus.

## Controls

| Widget | Range | Default | Meaning |
|--------|-------|---------|---------|
| Initial doctors | 5–50 | 20 | Number of doctors at setup |
| Initial nurses | 5–80 | 40 | Number of nurses at setup |
| Stress aversion | 0–2 | 1.0 | How strongly workers avoid high-stress cells |

## Monitors & Plots

- **Total workers / Doctors / Nurses:** headcount (bounded, constant).
- **Avg satisfaction:** mean worker satisfaction (0–1).
- **Plot:** tracks doctor count, nurse count, and average satisfaction over time.

## Assumptions & Limitations

- Workers are homogeneous within their role (no individual variation in skill, preference, or mobility).
- Demand is static per cell except for small random noise; no patient flow between cells.
- Movement is limited to radius 2 (local search); workers do not "see" the whole map.
- No hiring, firing, retirement, or training dynamics.
- No geographic realism (no distances, travel times, or catchment areas).
- The model is **illustrative only**: it demonstrates the *mechanism* of workforce redistribution under demand and stress, not a prediction of real-world outcomes.

## Units

- Demand: arbitrary patient-equivalents per cell (10–60).
- Stress: workers per patient-equivalent (dimensionless ratio).
- Satisfaction: 0–1 scale.
- Time: ticks (1 tick ≈ 1 decision cycle).]]></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>