<snapdata remixID="8982697"><project name="Disease Simulation working" 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><sprite name="Person" idx="1" x="187.76758409675472" y="28.711460238969124" heading="234" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="2" 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="immune" center-x="13" center-y="12.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAErUlEQVRIS6WWW09UVxTHf2ufw1wYcABhLBhEqcYGG40Z+4K2xbQp6YOP9Ds06Xcgfocm/Q7l0YeGpo20VV7qxGgqqdGiaIQ6IDDCMLdz9mr2OTNyKai1+23O2Xv+Z63/ZW3hzUtQYApDH8LYWHxiZgaWUSawSPTE7TpwxVv2WxodNxTyhiMJn5Txqdo2skkTbS/VLCnToGoDntcD8gULEei+gPsBua0CEz4ri0nCTBrCDpAMkCFpEhFQzdaBMmgZvE28coXegRpMBU2wXYC7gRzA1IRheD7J0VwGv9qDmhyenyOwfXgmi2g6bpRUCG0J3ywTBkXEFglSqzwrlpkfrjExtau63UDfT3icLqXoCbpIef0YTqAMY+UYhhxIFiHVZKQKWsJSxOgThHksj6iGS6z669zPVvlqKmyxsg0UtWssyUpbD9YbQuwIHmewnAIZwGgXVtox+NFhS4DRLaysgy5ieEDIPdTMYcIFehurMFNrcdbSi1DI+wx0ZmlLDGE4h5ULiI4gDGKlGzSFiANpfZyiGoBUMbqG8hSVOYzewnKHRn2BxY0S+ULEWXxoEsPXX6QxOgByDjGjoHmEE6DdIK5dXrMN20DxgxC0CuLAHoEUUDsLegcri3z3Y4Wr2PjQ9TGffHeWSvk0nlwCPkaituWanDhJH2QFpy6LUsVQRLkH/EaoN0hn7lNYK3F5Joil/PDLBEfDHFvkQT5D5SKG46h2Nis52G9xVQ4sRGQDy2NEb4L+TDsFnnlFTv5Qj4GWrqTpkEGq9UuIHcfIBVTei3g5uJK9NteIL9G/sXoLNdOkEjfY1Kf0X6vEQMtjGTT5vgsYPB3HynmEw0Db62Jln3cNlBcYvU0o0ygzSO0v+mbKEgnhm4sZ6DiF4TKq48A5kB5oSvnt0QLQVeAOItNYrsPmA769Wf53ReKA/mdF6G10b0UtjtoagxgdBcYR+QhL/ztxZFhC9XdgGiuzNNp2cORU1x7mSJjziP0cZBRkGP6j6pAN0HnQWdT8RN3eZqululc+8rI05BR4F1H5BOVDxLp8a5n1dT6KTaumiPAHor9CeJM2fUAhbPoodoHAlTSloJ8gOIt4o6hLBhlG1YnCgcUZtzOC4t8BUEVkFdV5xCVDOIvv3yXrL8G1ynYExYHq8TJ5CBsOEfpnQS8AZ1AGEe1GJY1EMdSKohB1JtUKKmsIT8GlgtzCC+5ivAUO1V7CTLgN1Krq8ViSTHsXNhjCNx9EMaT2JMhRLD0YN4uk6S1tYKWCYRX0GWIeRvET2D8x/gLlrXWO703vlk900sBckpWXXUA/vgxh3UzSY6gcwdgsGnEGolWsKSH6HJEnGB4R6AKwRO+hdRipIVfdeN/V71ZiCUwK/JJgw8ugfjeB9KGaw2ov4iasbU5YU0FtCSMriBTxdRkJ1ugMy/BpHa46Ql6N8/2VpBjIe3A4wUYyTXmjg4RksH4aSzL6KkMNE1Soa5lM5yadtQq8qEPBcfKqkv0r2hk18S3IDUSPfKcTgM86Pp4XiyEMQ7oixQUUNkLyBTe2d1Wx8+/eFP9N6bsjrqVzQmE+vm7lhy2MaNSiWPTveK87OEj3Tti3itx/AFPWFbr47Q33AAAAAElFTkSuQmCC" id="12"/></item></list></costumes><sounds><list struct="atomic" id="13"></list></sounds><blocks></blocks><variables></variables><scripts><script x="36" y="317.65602936879435"><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="doIf"><custom-block s="%s &lt;= %s"><block s="reportRandom"><l>0</l><l>100</l></block><block var="infection probability"/></custom-block><script><block s="doSwitchToCostume"><l>sick</l></block></script></block></script></block></script></block></script><script x="431.5673748865248" 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 var="infected slow"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doIfElse"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>25</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><script x="44.48936070212767" y="40.03546099290787"><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="426.5673758865248" y="365.8333343333333"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><block s="doIf"><block s="reportEquals"><block var="infected healing"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doWait"><l>4</l></block><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="doIf"><custom-block s="%s &lt;= %s"><block s="reportRandom"><l>0</l><l>100</l></block><block var="infection probability"/></custom-block><script><block s="doSwitchToCostume"><l>healthy</l></block><block s="doIf"><block s="reportEquals"><block var="infected immunity"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><script><block s="doWait"><l>.5</l></block><block s="doSwitchToCostume"><l>immune</l></block></script></block></script></block></script></block></script></block></script></block></script><script x="172.52482169503548" y="33.4964539007093"><block s="receiveGo"></block><block s="removeClone"></block></script><script x="82" y="509.83333433333337"><block s="receiveMessage"><l>start</l></block><block s="doIf"><block s="reportTouchingObject"><l>Doctor</l></block><script><block s="doSwitchToCostume"><l>healthy</l></block></script></block></script><script x="130.000001" y="627.8333353333334"><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script></script></block></script></scripts></sprite><watcher scope="Person" s="xPosition" style="normal" x="10" y="10" color="74,108,212" hidden="true"/><watcher scope="Person" 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"/><watcher var="infection probability" style="normal" x="28" y="116.00000999999997" color="243,118,29" hidden="true"/><watcher var="infected slow" style="normal" x="10" y="115.00000999999997" color="243,118,29" hidden="true"/><watcher scope="Person" s="getCostumeIdx" style="normal" x="10" y="139.00001199999997" color="143,86,227" hidden="true"/><watcher var="infected healing" style="normal" x="10" y="160.00001399999996" color="243,118,29" hidden="true"/><watcher var="infected immunity" style="normal" x="10" y="195.00001599999996" color="243,118,29" hidden="true"/><watcher var="doctors" style="normal" x="10" y="230.00001799999995" color="243,118,29"/><sprite name="Doctor" idx="2" x="58.184520953920355" y="152.94741384643285" heading="192" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="1" color="193.8,23.256,0,1" pen="tip" id="195"><costumes><list id="196"><item><costume name="doctor" center-x="13" center-y="12.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAZCAYAAAAv3j5gAAADk0lEQVRIS8WWSWgUQRiFvzaJcckyYzSixo24obgi7gsKHgT15k09evWigjABIQFB8eDVo3rzJorgRdxwQ8UN1xDXuMQ4E+M2ZsaWV/PXpNNONJ4sKKqnpqpf/f97/6sO+LcWxJaHA90e31hqn9YMAqKj1gnkZ2zsF7c/IM2rlwEVwGCg0rrm1PJA1voPoMfmdIDfIi0F5AH04uFAAhhhYw0wxIC+A91AGvgIZIAvBqxD9AGLA+l3uQHUAQ3ABOujNw9ner4QmULNHv/CI+Ad8Ap4buMHA8xFwaJAHqQKGAtMA2YB04HxQF1LkoZdCRchBzJkUmkH0Am8BB4D98GBtwOfgSJYFEi5HwaMA+YAC22cJBBgaFOCIamk442WNPnmDErfNwNTRHeA68Bd4LVFpjQ6wv2olNQDs4GVwCKg0fgRL2WpBEFTsrChOQ0tGceDF4V4agWuAReB28B74yz0QDplNTAFWAWsMcBRpjQn71QCYkBRmUuB4ucecBY4BzwxweQ9kCQ8ElgArAdWAxMtlb6G6AcoCqY0PgPOA6eBGwbe4+tFQBLACmAjsAwYbQos8vgHIA8m8qXCK8AJ4IIJowikgmxoncCpzjwjv4ZU50Iqwl4OHS8Tywtd7Xmu0KMtgLA8oGdYQHddGR8aX7DBFPnDR+SAspN5OlDvGsi6yjZXIpJ+9r8AjdtZy/bWHpZ/CpmZC6kNC15XbFurYJu0CRzphqMqyUgLIF8e0FUd8LCxgksHuzgcT53EIPKXgsvrchOHautfxCBzlStcAk4Cl4G3Mlz/ElGsUlSxrrM6mgrIRBWVW/cXeatwP4HjWXV0xhxCppvzQKoV2Y8MdAmwFphvdqR5HeRPBSv9fbVobhqQJC5b0vzPqAX5qGSiAlsMzLCU6rqoSCUoa0oWomtOE7ZknP3oHtL1oPqRoQrgqj0rGv1ftCDtVVTyNDmEZDnPTFV+J/5q9iao2ZMsXBP70mT3ZlyqdCeJB/mczPSWWU8HONPVLdxLtIlHfAhMbi0LEk/yPz3X7x/BzB21zkE41EX77o88MONUiuRr6nrW1SEQ59ylgPx3gU4tISu6Mdbrj41i09xKJmvj7SxtWzqczcih31iXqSpCGaz/nigJ5A+gNIozAUoMAtWF6LiyRZ4bVZNeLtIFIGG4dMVqLD5V/O2j86BKq8CjHydKjV7sX94nioECxddFFar//MdHya+e+PF/AUpDHi/7zjstAAAAAElFTkSuQmCC" id="197"/></item></list></costumes><sounds><list struct="atomic" id="198"></list></sounds><blocks></blocks><variables></variables><scripts><script x="28" y="37"><block s="receiveGo"></block><block s="removeClone"></block></script><script x="171" y="36"><block s="receiveGo"></block><block s="hide"></block></script><script x="395" 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="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script><script x="417" y="196"><block s="receiveOnClone"></block><block s="setHeading"><block s="reportRandom"><l>0</l><l>360</l></block></block><block s="doForever"><script><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script><script x="35" y="123"><block s="receiveMessage"><l>start</l></block><block s="show"></block><block s="doIf"><custom-block s="%s &lt;= %s"><l>1</l><block var="doctors"/></custom-block><script><block s="doFor"><l>i</l><l>1</l><block s="reportDifference"><block var="doctors"/><l>1</l></block><script><block s="gotoXY"><custom-block s="random x position"></custom-block><custom-block s="random y position"></custom-block></block><block s="createClone"><l>Doctor</l></block><block s="setHeading"><block s="reportRandom"><l>0</l><l>360</l></block></block><block s="forward"><block s="reportQuotient"><block var="speed"/><l>5</l></block></block><block s="bounceOffEdge"></block></script></block></script></block></script></scripts></sprite></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 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="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><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 infection probability"></custom-block><custom-block s="infected slow down?"></custom-block><custom-block s="infected heal?"></custom-block><custom-block s="infected immunity?"></custom-block><custom-block s="doctors?"></custom-block></script></block-definition><block-definition s="Set infection probability" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>infection probability</l><l>0</l></block><block s="doAsk"><l>Infection Probability (Enter a number between 0 and 100)</l></block><block s="doSetVar"><l>infection probability</l><block s="getLastAnswer"></block></block></script></block-definition><block-definition s="sick chances" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="infected slow down?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>infected slow</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doAsk"><l>Do you want infected to walk slower? (answer yes or no)</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>yes</l></block><script><block s="doSetVar"><l>infected slow</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doSetVar"><l>infected slow</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="infected heal?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>infected healing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doAsk"><l>Do you want the infected to heal? (answer yes or no)</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>yes</l></block><script><block s="doSetVar"><l>infected healing</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doSetVar"><l>infected healing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="infected immunity?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>infected immunity</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doAsk"><l>Do you want the healed to become immune? (answer yes or no)</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>yes</l></block><script><block s="doSetVar"><l>infected immunity</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doSetVar"><l>infected immunity</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="doctors?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>doctors</l><l>0</l></block><block s="doAsk"><l>How many doctors do you want? (Enter a number between 0 and 3)</l></block><block s="doSetVar"><l>doctors</l><block s="getLastAnswer"></block></block></script></block-definition></blocks><variables><variable name="population size"><l>50</l></variable><variable name="percent infected"><l>10</l></variable><variable name="speed"><l>5</l></variable><variable name="timer"><l>22.6</l></variable><variable name="infection probability"><l>100</l></variable><variable name="infected slow"><bool>true</bool></variable><variable name="infected healing"><bool>false</bool></variable><variable name="infected immunity"><bool>false</bool></variable><variable name="doctors"><l>3</l></variable></variables></project><media name="Disease Simulation working" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>