<snapdata remixID="8982433"><project name="Copy of Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAALJ0lEQVR4Xu2dB0xVWxaGf5AiKD47dhTUsffYx0zQsbfYdTRPNPoy9uiz66iJXdQoloA6lnn2sU3s3bFPNI5lwIY0EfWBBZwHXGCYrO27KEWRw8F9n/w7IdHL2es/5z+f6+y19gHtUlNTU8FBBzQ5YEcANTlPWeUAASQIWh0ggFrtpzgBJANaHSCAWu2nOAEkA1odIIBa7ac4ASQDWh0ggFrtpzgBJANaHSCAWu2nOAEkA1odIIBa7ac4ASQDWh0ggFrtpzgBJANaHSCAWu2nOAEkA1odIIBa7ac4ASQDWh0ggFrtpzgBJANaHSCAWu2nOAEkA1odIIBa7ac4ASQDWh0ggCbZn5CcirYHI/GfVxb8N8l2f9uJ53eOGFS9MOY0LW7SlecuDAHMnX9q9vNfUlBxcyh2dnBHRw9XFHa0NyFq3oQIj0tGq32RcHO0Q+CfKuWNSA6iEsAcmPWpQ7/zf4Kf2rujW5VCJkT7OiGKbwjBwS5l0Kacy9cR/IQKATTBfse1wUga7WVCpK8XYlNgLDYHxuJSnwpfTzQLJQJogv0ZAZw0aRKeP3+ORYsWoVKlzz/mkpKScPToUfTo0SPtTO7cuYNjx45h6tSpnz27OXPmoEqVKujevTvevXuXpdbGjRsRGBiIFStWpIt1/UUCWv89Uvs/HAKYBwC2bt0aly5dQtWqVTF+/HhMnDgRwcHBqFWrFhITExETE4Pp06ejQYMGGDJkCFauXIl169YhPj4e48aNw9q1a9GwYUPs2LEDJUqUwOjRo1GqVCmsWbMGq1evxsCBA2GxWNCtWzfMmjULnp6eCA0NheiKZvv27bFlyxbExsbi1q1bCAkJQZcuXeDq6pp2tQTQhBtvKyEyZsAmTZoo6CSr1a9fHw8fPsTYsWNx+vRp3LhxAxcuXFAZrnLlyupzAVAy5r1797B7927cvHlT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2nOAEkA1odIIBa7ac4ASQDWh0ggFrtpzgBJANaHSCAWu2nOAEkA1odIIBa7ac4ASQDWh3IBOCxsF/Q/XCU1pOi+LfpwD+6lkUnD9d0F5cOQPn/l53WBiNptNe36QCvSqsDjmuDYRnthY//a710AH5/6gValnXBD3WKaD1Rin+bDvjfi8WVqHhs/aN72gWmA1AItWa/oKAgxMfHw87OTn3Z29t/m67wqgw5IEwUKFAAzs7O8PJ6/8SMjo5WzMhITU1V3FgsFty+fRu9evVSn3/MmPw9WwCdnJzg4OCgxKxBrWfMv783OT/6YU1Mjo6OqFSpkrIgPDwcSUlJmYD29vZGWFhYzgFMSUlBwYIFFeUCIQcd+NgB65OxdOnS6uOIiAiV8WRcvXoVLVq0UH82DKBMdnV1VRASQMKXlQMCYfHixTNlwICAAIwcOTJ3AMpj18XFhQCSvc86UKxYsXQZ0M/PD76+vmmPXcMZ0Pr4lXWgwMhBB7JywAqgKWvA2B884eJgh7i4OLi5udFxOvDFDgQHByMkJCTd8ZGRkYojqYLjk1NRxP9Juj5zuip4+a03uBdjweZ27xeVHHTATAd8Tr9EnRJOmNSwaFrYTFtx0qf5a9vSGFKD2c9M8/N7rL/dj8OwMy8z7bJl+TKCQMhBB8x2IKstXr4NY7bLjJcjB/4PJwzL899RaCoAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" volume="100" pan="0" lines="round" ternary="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLA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BAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="10" idx="1" x="0" y="0" heading="243" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="4" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="healthy" center-x="8" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAABGUlEQVQ4T+2UIU/DUBCAv1ugXUJQEIIgQWFY+w9ICAbUsKhhh0JNYFAIECgUs0xhccwMEn7BWkCgSBDLgiWhD7IjLVt5zYDQap57d/d9ebm8O2HsaMnhdkvQFWBxmH5U5MZQOQcZ2IjYF5dgF9gHZsfFSeQZOIjwT0b5VOAQnAnUfgAzYYWWwd+Og4nAJTgF6n+BrZpmhL8jLmEV9CInPCyXTXEJroDVYgKuY4EWhBPsX/DZAwNMFmzkm5TpHiqyV0Qg6JFMcz9jeL8D5nJK+g4Ty6OvvA5c5hRsRPjtdJjKhGsKTdCl30XyIFB/xeukw/QFJLugIQxqIF5WpKFSahkqx/ZOyOwDG5ginDfoQhxzkKcXvN53L/sABJxNPpw+6pgAAAAASUVORK5CYII=" id="10"/></item><item><costume name="sick" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAkElEQVQ4T2NkwAr+M71hkPiLTUqE4QUzAwPjP3Q5RnSBNwzi/7EbjioqwvASRS8Kh1hDYEYiGwY3iFRD0A0DG0SuIciGUc8gSl0DcxXjqEEE0yj1Yo2q6YiX4brwfQaHNwTdj0WBIsMBkc8Mmm+pm0VgFpGaprBmWoSrcZdFiLyFWSZhlEfIwYDuQvQyCFktACGSOB34Az5xAAAAAElFTkSuQmCC" id="11"/></item><item><costume name="doctor" center-x="10" center-y="10" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAdklEQVQ4T2NkwAfapP9jla56yohLG3YJXAahm4LFYEwDiTUMZjiaoagGkmoYFkMRBpJrGJqhEAMpNQzJUBoYSC3XQV3JSDXvjmQDB3+ygSVKSpMPNE/TKOtR6kqkEofGxRdyAUooTHGU2jiLcrjZ6AbjKf5BegB1QTU13LU6WQAAAABJRU5ErkJggg==" id="12"/></item><item><costume name="vaccinated" center-x="8" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAASCAYAAABSO15qAAABGUlEQVQ4T+2UIU/DUBCAv1ugXUJQEIIgQWFY+w9ICAbUsKhhh0JNYFAIECgUs0xhccwMEn7BWkCgSBDLgiWhD7IjLVt5zYDQap57d/d9ebm8O2HsaMnhdkvQFWBxmH5U5MZQOQcZ2IjYF5dgF9gHZsfFSeQZOIjwT0b5VOAQnAnUfgAzYYWWwd+Og4nAJTgF6n+BrZpmhL8jLmEV9CInPCyXTXEJroDVYgKuY4EWhBPsX/DZAwNMFmzkm5TpHiqyV0Qg6JFMcz9jeL8D5nJK+g4Ty6OvvA5c5hRsRPjtdJjKhGsKTdCl30XyIFB/xeukw/QFJLugIQxqIF5WpKFSahkqx/ZOyOwDG5ginDfoQhxzkKcXvN53L/sABJxNPpw+6pgAAAAASUVORK5CYII=" id="13"/></item></list></costumes><sounds><list struct="atomic" id="14"></list></sounds><blocks></blocks><variables></variables><scripts><script x="35.05185770212768" y="36"><block s="receiveGo"></block><block s="doSetVar"><l>timer</l><l>0</l></block><block s="doWait"><l>.1</l></block><block s="doHideVar"><l>timer</l></block><block s="show"></block><custom-block s="set variables for simulation"></custom-block><custom-block s="initialize sim"></custom-block><block s="doBroadcast"><l>start</l></block><block s="doShowVar"><l>timer</l></block><block s="doForever"><script><custom-block s="update timer"></custom-block><custom-block s="Stop everything if everyone is infected"></custom-block></script></block></script><script x="34.56249700000001" y="349.6205683758865"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block><custom-block s="touching infected?"></custom-block></block><script><block s="doDeclareVariables"><list><l>random</l></list></block><block s="doSetVar"><l>random</l><block s="reportRandom"><l>1</l><l>100</l></block></block><block s="doIf"><custom-block s="%s &lt;= %s"><block var="random"/><block var="probability"/></custom-block><script><block s="doSwitchToCostume"><l>sick</l></block></script></block></script></block></script></block></script><script x="748.6416035625" y="444.6205733758867"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block></script><script x="455.000001" y="378.62057237588647"><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="doDeclareVariables"><list><l>random2</l></list></block><block s="doWait"><block var="Time Boy"/></block><block s="doSetVar"><l>random2</l><block s="reportRandom"><l>0</l><l>100</l></block></block><block s="doIfElse"><custom-block s="%s &lt;= %s"><block var="random2"/><block var="heal!"/></custom-block><script><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportEquals"><block var="immunity"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doSwitchToCostume"><l>vaccinated</l></block></script></block></script><script><block s="doSwitchToCostume"><l>sick</l></block></script></block></script></block></script><script x="30" y="756.7872380425533"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><custom-block s="for each %upvar of %l %cs"><l>item</l><block s="reportGet"><l><option>clones</option></l></block><script><block s="doWait"><block var="Time Boy"/></block><block s="doIf"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume #</option></l><block var="item"/></block><l>2</l></block><script><block s="doDeclareVariables"><list><l>prob</l></list></block><block s="doSetVar"><l>prob</l><block s="reportRandom"><l>0</l><l>100</l></block></block><block s="doIf"><custom-block s="%s &lt;= %s"><block var="prob"/><block var="heal!"/></custom-block><script><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportEquals"><block var="immunity"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doSwitchToCostume"><l>vaccinated</l></block></script></block></script></block></script></block></script></custom-block></script></block></script><script x="42" y="557.45390470922"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><custom-block s="touching doctor?"></custom-block></block><script><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportAnd"><custom-block s="touching infected?"></custom-block><block s="reportEquals"><block var="immunity"/><block s="reportBoolean"><l><bool>true</bool></l></block></block></block><script><block s="doSwitchToCostume"><l>healthy</l></block></script></block></script></block></script></block></script><script x="179.0873186950355" y="39.460992907801426"><block s="receiveGo"></block><block s="removeClone"></block></script><script x="310.1298718865248" y="30"><block s="receiveMessage"><l>start</l></block><block s="setHeading"><block s="reportRandom"><l>0</l><l>360</l></block></block><block s="doForever"><script><block s="doIfElse"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="doIfElse"><block s="reportGreaterThan"><block var="slow down"/><l>0</l></block><script><block s="forward"><block s="reportQuotient"><block s="reportProduct"><block var="speed"/><block s="reportDifference"><l>1</l><block s="reportProduct"><l>.01</l><block var="slow down"/></block></block></block><l>5</l></block></block><block s="bounceOffEdge"></block></script><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script></block></script><comment x="275.562497" y="790.7872380425533" w="90" collapsed="false">We created a time variable as well as a probability variable for healing. This way the user could select to only use time if the probability is 100%, or use a combination of time and probabilty. The set variable is then used in the wait block to create a time interval in which the probability of healing is run.</comment></scripts></sprite><watcher scope="10" s="xPosition" style="normal" x="10" y="10" color="74,108,212" hidden="true"/><watcher scope="10" s="yPosition" style="normal" x="10" y="31.000001999999995" color="74,108,212" hidden="true"/><watcher var="population size" style="normal" x="10" y="52.000003999999976" color="243,118,29" hidden="true"/><watcher var="percent infected" style="normal" x="10" y="73.00000599999998" color="243,118,29" hidden="true"/><watcher var="speed" style="normal" x="10" y="94.00000799999998" color="243,118,29" hidden="true"/><watcher scope="Stage" s="reportMouseX" style="normal" x="6" y="40.00001199999997" color="4,148,220" hidden="true"/><watcher scope="Stage" s="reportMouseY" style="normal" x="8" y="63.000013999999965" color="4,148,220" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="2" y="5.000009999999975" color="4,148,220" hidden="true"/><watcher var="timer" style="normal" x="4" y="7.000009999999975" color="243,118,29" hidden="true"/><watcher var="probability" style="normal" x="10" y="115.00000999999997" color="243,118,29" hidden="true"/><watcher var="slow down" style="normal" x="10" y="136.00001199999997" color="243,118,29" hidden="true"/><watcher scope="Stage" s="getLastAnswer" style="normal" x="10" y="157.00001399999996" color="4,148,220" hidden="true"/><watcher var="infection rate" style="normal" x="10" y="178.00001599999996" color="243,118,29" hidden="true"/><watcher var="heal!" style="normal" x="10" y="199.00001799999995" color="243,118,29" hidden="true"/><watcher var="#doctors" style="normal" x="10" y="220.00001999999995" color="243,118,29" hidden="true"/><watcher var="immunity" style="normal" x="10" y="241.00002199999994" color="243,118,29" hidden="true"/><watcher var="vaccination" style="normal" x="10" y="265.00002399999994" color="243,118,29" hidden="true"/><watcher var="probability of heal" style="normal" x="10" y="286.00002599999993" color="243,118,29" hidden="true"/><watcher var="Time Boy" style="normal" x="10" y="307.00002799999993" color="243,118,29" hidden="true"/><watcher var="percent vacc" style="normal" x="10" y="328.0000299999999" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="label %&apos;text&apos; of size %&apos;size&apos;" type="command" category="pen"><comment x="0" y="0" w="90" collapsed="false">LABEL will stamp text on the stage at the given font size. The direction of the text is the direction the sprite is facing, and color will match the pen color.</comment><header></header><code></code><translations></translations><inputs><input type="%txt">Hello!</input><input type="%n">12</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>text</l><l>size</l></list><l>var stage = this.parentThatIsA(StageMorph),&#xD;    context = stage.penTrails().getContext(&apos;2d&apos;),&#xD;    rotation = radians(this.direction() - 90),&#xD;    trans = new Point(&#xD;      this.center().x - stage.left(),&#xD;      this.center().y - stage.top()&#xD;    ),&#xD;    isWarped = this.Warped,&#xD;    len,&#xD;    pos;&#xD;&#xD;if (isWarped) {endWarp(); }&#xD;context.save();&#xD;context.font = size + &apos;px monospace&apos;;&#xD;context.textAlign = &apos;left&apos;;&#xD;context.textBaseline = &apos;alphabetic&apos;;&#xD;context.fillStyle = this.color.toString();&#xD;len = context.measureText(text).width;&#xD;trans = trans.multiplyBy(1 / stage.scale);&#xD;context.translate(trans.x, trans.y);&#xD;context.rotate(rotation);&#xD;context.fillText(text, 0, 0);&#xD;context.translate(-trans.x, -trans.y);&#xD;context.restore();&#xD;pos = new Point(&#xD;  len * Math.sin(radians(this.direction())),&#xD;  len * Math.cos(radians(this.direction())));&#xD;pos = pos.add(new Point(this.xPosition(), this.yPosition()));&#xD;this.gotoXY(pos.x, pos.y, false);&#xD;this.changed();&#xD;if (isWarped) {this.startWarp(); }&#xD;stage.changed();</l></block><list><block var="text"/><block var="size"/></list></block></script></block-definition><block-definition s="empty? %&apos;data&apos;" type="predicate" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportEquals"><block var="data"/><block s="reportNewList"><list></list></block></block></block></script></block-definition><block-definition s="keep items such that %&apos;pred&apos; from %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%predRing"></input><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doIfElse"><block s="evaluate"><block var="pred"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><script><block s="doReport"><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="data"/></block><custom-block s="keep items such that %predRing from %l"><block var="pred"/><block s="reportCDR"><block var="data"/></block></custom-block></block></block></script><script><block s="doReport"><custom-block s="keep items such that %predRing from %l"><block var="pred"/><block s="reportCDR"><block var="data"/></block></custom-block></block></script></block></script></block></script></block-definition><block-definition s="combine with %&apos;function&apos; items of %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportCDR"><block var="data"/></block></custom-block><script><block s="doReport"><block s="reportListItem"><l>1</l><block var="data"/></block></block></script></block><block s="doReport"><block s="evaluate"><block var="function"/><list><block s="reportListItem"><l>1</l><block var="data"/></block><custom-block s="combine with %repRing items of %l"><block var="function"/><block s="reportCDR"><block var="data"/></block></custom-block></list></block></block></script></block></script></block-definition><block-definition s="if %&apos;test&apos; then %&apos;true&apos; else %&apos;false&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%anyUE"></input><input type="%anyUE"></input></inputs><script><block s="doIfElse"><block var="test"/><script><block s="doReport"><block s="evaluate"><block var="true"/><list></list></block></block></script><script><block s="doReport"><block s="evaluate"><block var="false"/><list></list></block></block></script></block></script></block-definition><block-definition s="for %&apos;i&apos; = %&apos;start&apos; to %&apos;end&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%n">1</input><input type="%n">10</input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>step</l><l>tester</l></list></block><block s="doIfElse"><block s="reportGreaterThan"><block var="start"/><block var="end"/></block><script><block s="doSetVar"><l>step</l><l>-1</l></block><block s="doSetVar"><l>tester</l><block s="reifyReporter"><autolambda><block s="reportLessThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script><script><block s="doSetVar"><l>step</l><l>1</l></block><block s="doSetVar"><l>tester</l><block s="reifyReporter"><autolambda><block s="reportGreaterThan"><block var="i"/><block var="end"/></block></autolambda><list></list></block></block></script></block><block s="doSetVar"><l>i</l><block var="start"/></block><block s="doUntil"><block s="evaluate"><block var="tester"/><list></list></block><script><block s="doRun"><block var="action"/><list></list></block><block s="doChangeVar"><l>i</l><block var="step"/></block></script></block></script></block-definition><block-definition s="join words %&apos;words&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%mult%txt"></input></inputs><script><block s="doWarp"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportCDR"><block var="words"/></block></custom-block><script><block s="doReport"><block s="reportListItem"><l>1</l><block var="words"/></block></block></script></block><block s="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>1</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></block></script></block><block s="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>2</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="words"/></block><block s="reportCDR"><block s="reportCDR"><block var="words"/></block></block></block></custom-block></block></script></block><block s="doReport"><block s="reportJoinWords"><list><block s="reportListItem"><l>1</l><block var="words"/></block><l> </l><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></list></block></block></script></block></script><scripts><script x="229.000003" y="196.77778077777774"><block s="reportJoinWords"><list><l></l><l></l></list></block></script></scripts></block-definition><block-definition s="list $arrowRight sentence %&apos;data&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doReport"><custom-block s="join words %mult%txt"><block var="data"/></custom-block></block></script></block></script></block-definition><block-definition s="sentence $arrowRight list %&apos;text&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="text"/><l><option>whitespace</option></l></block></block></script></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%cs"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doRun"><block var="action"/><list></list></block></script><list><l>cont</l></list></block></block><custom-block s="ignore %s"><l>3</l></custom-block></script></block-definition><block-definition s="throw %&apos;cont&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input></inputs><script><block s="doRun"><block var="cont"/><list></list></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;value&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%anyUE"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doReport"><block s="evaluate"><block var="value"/><list></list></block></block></script><list><l>cont</l></list></block></block></script></block-definition><block-definition s="throw %&apos;tag&apos; %&apos;value&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input><input type="%s"></input></inputs><script><block s="doRun"><block var="tag"/><list><block var="value"/></list></block></script></block-definition><block-definition s="for each %&apos;item&apos; of %&apos;data&apos; %&apos;action&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%l"></input><input type="%cs"></input></inputs><script><block s="doUntil"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doSetVar"><l>item</l><block s="reportListItem"><l>1</l><block var="data"/></block></block><block s="doRun"><block var="action"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><block s="doSetVar"><l>data</l><block s="reportCDR"><block var="data"/></block></block></script></block></script></block-definition><block-definition s="if %&apos;test&apos; do %&apos;action&apos; and pause all $pause-1-255-220-0" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%boolUE"></input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>breakpoint</l></list></block><block s="doIf"><block s="evaluate"><block var="test"/><list></list></block><script><block s="doSetVar"><l>breakpoint</l><block var="test"/></block><block s="doShowVar"><l>breakpoint</l></block><block s="doRun"><block var="action"/><list></list></block><block s="doPauseAll"></block><block s="doHideVar"><l></l></block></script></block></script></block-definition><block-definition s="word $arrowRight list %&apos;word&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="word"/><l><option>letter</option></l></block></block></script></block></script></block-definition><block-definition s="ignore %&apos;x&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs></block-definition><block-definition s="list $arrowRight word %&apos;list&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportJoinWords"><block var="list"/></block></block></script></block></script></block-definition><block-definition s="%&apos;x&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doReport"><block var="x"/></block></script></block-definition><block-definition s="numbers from %&apos;from&apos; to %&apos;to&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">10</input></inputs><script><block s="doIf"><block s="reportGreaterThan"><block var="from"/><block var="to"/></block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doReport"><block s="reportCONS"><block var="from"/><custom-block s="numbers from %n to %n"><block s="reportSum"><block var="from"/><l>1</l></block><block var="to"/></custom-block></block></block></script></block-definition><block-definition s="map %&apos;func&apos; over %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doIf"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doReport"><block var="data"/></block></script></block><block s="doReport"><block s="reportCONS"><block s="evaluate"><block var="func"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><custom-block s="map %repRing over %l"><block var="func"/><block s="reportCDR"><block var="data"/></block></custom-block></block></block></script></block-definition><block-definition s="random x position" type="reporter" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportRandom"><l>-230</l><l>230</l></block></block></script></block-definition><block-definition s="random y position" type="reporter" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportRandom"><l>-170</l><l>170</l></block></block></script></block-definition><block-definition s="touching infected?" type="predicate" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="for each %upvar of %l %cs"><l>item</l><block s="reportGet"><l><option>neighbors</option></l></block><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume #</option></l><block var="item"/></block><l>2</l></block><block s="reportLessThan"><block s="reportRelationTo"><l><option>distance</option></l><block var="item"/></block><l>15</l></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></custom-block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition><block-definition s="update timer" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>timer</l><block s="getTimer"></block></block></script></block-definition><block-definition s="set population size" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>population size</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="population size"/></custom-block><custom-block s="%s &lt;= %s"><block var="population size"/><l>200</l></custom-block></block><script><block s="doAsk"><l>Population Size? (Enter a number between 1 and 200)</l></block><block s="doSetVar"><l>population size</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>population size</l><block s="reportMonadic"><l><option>floor</option></l><block var="population size"/></block></block></script></block-definition><block-definition s="%&apos;a&apos; &lt;= %&apos;b&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doReport"><block s="reportOr"><block s="reportLessThan"><block var="a"/><block var="b"/></block><block s="reportEquals"><block var="a"/><block var="b"/></block></block></block></script></block-definition><block-definition s="Set percent infected" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>percent infected</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="percent infected"/></custom-block><custom-block s="%s &lt;= %s"><block var="percent infected"/><l>100</l></custom-block></block><script><block s="doAsk"><l>Initial Percent Infected (Enter a number between 1 and 100)</l></block><block s="doSetVar"><l>percent infected</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>percent infected</l><block s="reportMonadic"><l><option>floor</option></l><block var="percent infected"/></block></block></script></block-definition><block-definition s="Set speed" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>speed</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="speed"/></custom-block><custom-block s="%s &lt;= %s"><block var="speed"/><l>10</l></custom-block></block><script><block s="doAsk"><l>Speed that people will move around? (Enter a number between 1 and 10)</l></block><block s="doSetVar"><l>speed</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>speed</l><block s="reportMonadic"><l><option>floor</option></l><block var="speed"/></block></block></script></block-definition><block-definition s="initialize sim" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>initial infected</l><l>infected count</l></list></block><block s="doSetVar"><l>infected count</l><l>0</l></block><block s="doSetVar"><l>initial infected</l><block s="reportRound"><block s="reportProduct"><block s="reportQuotient"><block var="percent infected"/><l>100</l></block><block s="reportDifference"><block var="population size"/><block var="#doctors"/></block></block></block></block><block s="doSetVar"><l>vaccination</l><block s="reportRound"><block s="reportProduct"><block s="reportQuotient"><block var="percent vacc"/><l>100</l></block><block s="reportDifference"><block var="population size"/><block var="#doctors"/></block></block></block></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="percent vacc"/><l>0</l></block></block><script><block s="doFor"><l>i</l><l>1</l><block var="vaccination"/><script><block s="doSwitchToCostume"><l>vaccinated</l></block><block s="gotoXY"><custom-block s="random x position"></custom-block><custom-block s="random y position"></custom-block></block><block s="createClone"><l><option>myself</option></l></block></script></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="#doctors"/><l>0</l></block></block><script><block s="doFor"><l>i</l><l>1</l><block var="#doctors"/><script><block s="doSwitchToCostume"><l>doctor</l></block><block s="gotoXY"><custom-block s="random x position"></custom-block><custom-block s="random y position"></custom-block></block><block s="createClone"><l><option>myself</option></l></block></script></block></script></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><block s="reportDifference"><block var="population size"/><block s="reportSum"><block var="#doctors"/><block var="vaccination"/></block></block><script><block s="doIfElse"><block s="reportLessThan"><block var="infected count"/><block var="initial infected"/></block><script><block s="doSwitchToCostume"><l>sick</l></block><block s="doChangeVar"><l>infected count</l><l>1</l></block></script><script><block s="doSwitchToCostume"><l>healthy</l></block></script></block><block s="gotoXY"><custom-block s="random x position"></custom-block><custom-block s="random y position"></custom-block></block><block s="createClone"><l><option>myself</option></l></block></script></custom-block><block s="hide"></block><block s="doResetTimer"></block></script></block-definition><block-definition s="Stop everything if everyone is infected" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIf"><block s="reportNot"><block s="reportListContainsItem"><custom-block s="map %repRing over %l"><block s="reifyReporter"><autolambda><block s="reportAttributeOf"><l><option>costume #</option></l><l></l></block></autolambda><list></list></block><block s="reportGet"><l><option>clones</option></l></block></custom-block><l>1</l></block></block><script><block s="doPauseAll"></block></script></block></script></block-definition><block-definition s="set variables for simulation" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="gotoXY"><l>0</l><l>0</l></block><custom-block s="set population size"></custom-block><custom-block s="Set percent infected"></custom-block><custom-block s="Set speed"></custom-block><custom-block s="Set Probability of Infection"></custom-block><custom-block s="Set Slow down?"></custom-block><custom-block s="Set % Heal"></custom-block><custom-block s="Ask for time"></custom-block><custom-block s="Set Doctor Rate"></custom-block><custom-block s="Set Vaccination"></custom-block></script></block-definition><block-definition s="Set Probability of Infection" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>probability</l><l>-1</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="probability"/></custom-block><custom-block s="%s &lt;= %s"><block var="probability"/><l>100</l></custom-block></block><script><block s="doAsk"><l>What is the probability that you want for a person to become infected when contacted? 0-100</l></block><block s="doSetVar"><l>probability</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>probability</l><block s="reportMonadic"><l><option>floor</option></l><block var="probability"/></block></block></script></block-definition><block-definition s="Set Slow down?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>slow down</l><l>-1</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="slow down"/></custom-block><custom-block s="%s &lt;= %s"><block var="slow down"/><l>100</l></custom-block></block><script><block s="doAsk"><l>What percent slower do you want the infected to be?</l></block><block s="doSetVar"><l>slow down</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>slow down</l><block s="reportMonadic"><l><option>floor</option></l><block var="slow down"/></block></block></script></block-definition><block-definition s="Set Infection Rate" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>infection rate</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="infection rate"/></custom-block><custom-block s="%s &lt;= %s"><block var="infection rate"/><l>100</l></custom-block></block><script><block s="doAsk"><l>Rate of Infection Wanted (0-100)</l></block><block s="doSetVar"><l>infection rate</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>infection rate</l><block s="reportMonadic"><l><option>floor</option></l><block var="infection rate"/></block></block></script></block-definition><block-definition s="Set Doctor Rate" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>#doctors</l><l>-2</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="#doctors"/></custom-block><custom-block s="%s &lt;= %s"><block var="#doctors"/><l>3</l></custom-block></block><script><block s="doAsk"><l>How many doctors?</l></block><block s="doSetVar"><l>#doctors</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>#doctors</l><block s="reportMonadic"><l><option>floor</option></l><block var="#doctors"/></block></block></script></block-definition><block-definition s="Set % Heal" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>heal!</l><l>-1</l></block><block s="doSetVar"><l>immunity</l><l>-1</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="heal!"/></custom-block><custom-block s="%s &lt;= %s"><block var="heal!"/><l>100</l></custom-block></block><script><block s="doAsk"><l>What percent of infected do you wish to be randomly healed</l></block><block s="doSetVar"><l>heal!</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>heal!</l><block s="reportMonadic"><l><option>floor</option></l><block var="heal!"/></block></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block var="heal!"/><l>0</l></block></block><script><block s="doAsk"><l>Do you want immunity for those healed? Yes/No)</l></block><block s="doIf"><block s="reportEquals"><block s="getLastAnswer"></block><l>Yes</l></block><script><block s="doSetVar"><l>immunity</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></block></script></block-definition><block-definition s="touching doctor?" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="for each %upvar of %l %cs"><l>item</l><block s="reportGet"><l><option>neighbors</option></l></block><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume #</option></l><block var="item"/></block><l>3</l></block><block s="reportLessThan"><block s="reportRelationTo"><l><option>distance</option></l><block var="item"/></block><l>15</l></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></custom-block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition><block-definition s="set immunity" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="Set Vaccination" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>percent vacc</l><l>-2</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block var="percent vacc"/></custom-block><custom-block s="%s &lt;= %s"><block var="percent vacc"/><l>100</l></custom-block></block><script><block s="doAsk"><l>Initial Vaccination (Enter a percent between 0 and 100)</l></block><block s="doSetVar"><l>percent vacc</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>percent vacc</l><block s="reportMonadic"><l><option>floor</option></l><block var="percent vacc"/></block></block></script></block-definition><block-definition s="Touching Healthy?" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="for each %upvar of %l %cs"><l>item</l><block s="reportGet"><l><option>neighbors</option></l></block><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume #</option></l><block var="item"/></block><l>1</l></block><block s="reportLessThan"><block s="reportRelationTo"><l><option>distance</option></l><block var="item"/></block><l>15</l></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></custom-block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block-definition><block-definition s="Ask for time" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Time Boy</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>.25</l><block var="Time Boy"/></custom-block><custom-block s="%s &lt;= %s"><block var="Time Boy"/><l>10</l></custom-block></block><script><block s="doAsk"><l>In what amount of time do you want each person that&apos;s infected have a probability of becoming healed? (Time interval in sec: .25-10).</l></block><block s="doSetVar"><l>Time Boy</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>Time Boy</l><block s="reportMonadic"><l><option>floor</option></l><block var="Time Boy"/></block></block></script></block-definition></blocks><variables><variable name="population size"><l>0</l></variable><variable name="percent infected"><l>50</l></variable><variable name="speed"><l>10</l></variable><variable name="timer"><l>0</l></variable><variable name="probability"><l>0</l></variable><variable name="slow down"><l>0</l></variable><variable name="infection rate"><l>0</l></variable><variable name="heal!"><l>100</l></variable><variable name="#doctors"><l>0</l></variable><variable name="immunity"><bool>true</bool></variable><variable name="vaccination"><l>0</l></variable><variable name="probability of heal"><l>0</l></variable><variable name="Time Boy"><l>1</l></variable><variable name="percent vacc"><l>0</l></variable></variables></project><media name="Copy of Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>