<snapdata remixID="8981597"><project name="Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,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</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+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+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><watcher scope="Person" s="xPosition" style="normal" x="0.1680388427237176" y="0.1680388427231989" color="74,108,212" hidden="true"/><watcher scope="Person" s="yPosition" style="normal" x="0.1680388427237176" y="0.5209204460496721" color="74,108,212" hidden="true"/><watcher var="population size" style="normal" x="0.1680388427237176" y="0.8738020493762022" color="243,118,29" hidden="true"/><watcher var="percent infected" style="normal" x="0.1680388427237176" y="1.2266836527026896" color="243,118,29" hidden="true"/><watcher var="speed" style="normal" x="0.1680388427237176" y="1.5795652560291913" color="243,118,29" hidden="true"/><watcher scope="Stage" s="reportMouseX" style="normal" x="0.10082330563409414" y="0.6721555725394168" color="4,148,220" hidden="true"/><watcher scope="Stage" s="reportMouseY" style="normal" x="0.13443107417822375" y="1.0586449444105668" color="4,148,220" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="0.033607768544811734" y="0.08401958940043386" color="4,148,220" hidden="true"/><watcher var="timer" style="normal" x="0.06721553708962347" y="0.11762735794509638" color="243,118,29"/><watcher var="prob infected" style="normal" x="0.4829858952524546" y="0.4829858952523054" color="243,118,29" hidden="true"/><watcher var="sick speed" style="normal" x="0.3265532166282128" y="0.3265532166280849" color="243,118,29" hidden="true"/><watcher var="prob healed" style="normal" x="5.188746438746534" y="5.188746438746435" color="243,118,29" hidden="true"/><watcher var="number of doctors" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><sprite name="Person" idx="1" x="-183.68387238985" y="-88.4632010996881" heading="285" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="4" color="80,80,80,1" pen="tip" id="21"><costumes><list id="22"><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="23"/></item><item><costume name="sick" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAkElEQVQ4T2NkwAr+M71hkPiLTUqE4QUzAwPjP3Q5RnSBNwzi/7EbjioqwvASRS8Kh1hDYEYiGwY3iFRD0A0DG0SuIciGUc8gSl0DcxXjqEEE0yj1Yo2q6YiX4brwfQaHNwTdj0WBIsMBkc8Mmm+pm0VgFpGaprBmWoSrcZdFiLyFWSZhlEfIwYDuQvQyCFktACGSOB34Az5xAAAAAElFTkSuQmCC" id="24"/></item><item><costume name="immune" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAj0lEQVQ4T2NkwAr+MzHcl/+LVUrxITMDA+M/dDlGDMX35f5jNxxNVPERil5Ug4g1BGYmkmEIg0g1BM0wiEHkGoJkGBUNotQ1UFcxUuytkWDQ4It+BgYGXobrwp/vu78hKo+hKeJV3CnymUHzLZWzCMwWUhMn1kwLdzKesgietzDLJMzyCDkM0F2IVgYhKwUAD8I4/ws/P1sAAAAASUVORK5CYII=" id="25"/></item><item><costume name="doctor" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAkElEQVQ4T2NkwAr+M+1luPwXm5Qzgy4zAwPjP3Q5RnSBvQyX/mM3HFXUmUEPRS8Kh1hDYEYiGwY3iFRD0A0DG0SuIciGUc8gSl0DcxXjqEEE0yj1Yo2q6YiX4brwBobfbwi6H4uCAAZWkc8Mmm+pm0VgFpGaprBmWoSrcZdFiLyFWSZhlEfIwYDuQvQyCFktAD3HOtkaOmt1AAAAAElFTkSuQmCC" id="26"/></item></list></costumes><sounds><list struct="atomic" id="27"></list></sounds><blocks></blocks><variables></variables><scripts><script x="40.48936070212767" y="10"><block s="receiveGo"></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="220.52482169503514" y="36.46099290780137"><block s="receiveGo"></block><block s="removeClone"></block></script><script x="37.567374886524476" y="256.9645390070921"><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="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>3</l></block><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>4</l></block><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="forward"><block s="reportQuotient"><block var="sick speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script></block></script><script x="30" y="712.6205683758867"><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="doSetVar"><l>random num</l><block s="reportRandom"><l>1</l><l>100</l></block></block><block s="doIf"><custom-block s="%s &lt;= %s"><block var="random num"/><block var="prob infected"/></custom-block><script><block s="doSwitchToCostume"><l>sick</l></block></script></block></script></block><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><custom-block s="touching healthy"></custom-block></block><script><block s="doSetVar"><l>random num</l><block s="reportRandom"><l>1</l><l>100</l></block></block><block s="doIf"><custom-block s="%s &lt;= %s"><block var="random num"/><block var="prob healed"/></custom-block><script><block s="doSwitchToCostume"><l>immune</l></block></script></block></script></block><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><custom-block s="touching doc"></custom-block></block><script><block s="doSwitchToCostume"><l>immune</l></block></script></block></script></block></script></scripts></sprite><watcher var="vaccinated percent" style="normal" x="10" y="31.000001999999995" 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><block s="doDeclareVariables"><list><l>probability</l></list></block><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 num of docs" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>number of doctors</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="number of doctors"/></custom-block><custom-block s="%s &lt;= %s"><block var="number of doctors"/><l>3</l></custom-block></block><script><block s="doAsk"><l>enter in num of docs</l></block><block s="doSetVar"><l>number of doctors</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>number of doctors</l><block s="reportMonadic"><l><option>floor</option></l><block var="number of doctors"/></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><l>initial vaccinated</l><l>vacinated 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 var="population size"/></block></block></block><block s="doSetVar"><l>vacinated count</l><l>0</l></block><block s="doSetVar"><l>initial vaccinated</l><block s="reportRound"><block s="reportProduct"><block s="reportQuotient"><block var="vaccinated percent"/><l>100</l></block><block var="population size"/></block></block></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><block var="population size"/><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="doIfElse"><block s="reportLessThan"><block var="vacinated count"/><block var="initial vaccinated"/></block><script><block s="doSwitchToCostume"><l>immune</l></block><block s="doChangeVar"><l>vacinated count</l><l>1</l></block></script><script><block s="doSwitchToCostume"><l>healthy</l></block></script></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="doFor"><l>i</l><l>1</l><block var="number of 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><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><custom-block s="set pop size"></custom-block><custom-block s="Set percent infected"></custom-block><custom-block s="set prob being infected"></custom-block><custom-block s="Set speed"></custom-block><custom-block s="set sick speed"></custom-block><custom-block s="set prob being healed"></custom-block><custom-block s="set num of docs"></custom-block><custom-block s="Set percent vaccinated"></custom-block></script></block-definition><block-definition s="set prob being infected" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>prob infected</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="prob infected"/></custom-block><custom-block s="%s &lt;= %s"><block var="prob infected"/><l>100</l></custom-block></block><script><block s="doAsk"><l>prob to be infected</l></block><block s="doSetVar"><l>prob infected</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>prob infected</l><block s="reportMonadic"><l><option>floor</option></l><block var="prob infected"/></block></block></script></block-definition><block-definition s="set sick speed" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>sick speed</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="sick speed"/></custom-block><custom-block s="%s &lt;= %s"><block var="sick speed"/><l>10</l></custom-block></block><script><block s="doAsk"><l>Speed that sick people will move around? (Enter a number between 1 and 10)</l></block><block s="doSetVar"><l>sick speed</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>sick speed</l><block s="reportMonadic"><l><option>floor</option></l><block var="sick speed"/></block></block></script></block-definition><block-definition s="set prob being healed" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>prob healed</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="prob healed"/></custom-block><custom-block s="%s &lt;= %s"><block var="prob healed"/><l>100</l></custom-block></block><script><block s="doAsk"><l>prob to be healed</l></block><block s="doSetVar"><l>prob healed</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>prob healed</l><block s="reportMonadic"><l><option>floor</option></l><block var="prob healed"/></block></block></script></block-definition><block-definition s="touching healthy" type="predicate" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>probability</l></list></block><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="set pop 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>enter in pop size 1 - 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="touching doc" type="predicate" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>probability</l></list></block><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>4</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 percent vaccinated" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>vaccinated percent</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="vaccinated percent"/></custom-block><custom-block s="%s &lt;= %s"><block var="vaccinated percent"/><l>100</l></custom-block></block><script><block s="doAsk"><l>Initial Percent vaccinated (Enter a number between 1 and 100)</l></block><block s="doSetVar"><l>vaccinated percent</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>vaccinated percent</l><block s="reportMonadic"><l><option>floor</option></l><block var="vaccinated percent"/></block></block></script></block-definition></blocks><variables><variable name="population size"><l>100</l></variable><variable name="percent infected"><l>10</l></variable><variable name="speed"><l>10</l></variable><variable name="timer"><l>47.2</l></variable><variable name="prob infected"><l>10</l></variable><variable name="sick speed"><l>1</l></variable><variable name="prob healed"><l>100</l></variable><variable name="random num"><l>21</l></variable><variable name="number of doctors"><l>2</l></variable><variable name="vaccinated percent"><l>50</l></variable></variables></project><media name="Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>