<snapdata remixID="8981583"><project name="Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAEQUlEQVR4Xu3Yz0vTcRzH8fe2SiFFGOEP9sMURmBBsFMEO3QodqqrmNCpgx0Cob+gTkF06NrBLtLJsxR56pC/EjqEJ6lkMnET3RhzP9gW308w+OZIBeFF+vyACOO7vfTJA7+bgVar1TIOBUQFAgAUlWfWFQAgEKQFOgJcW1uz4eFhC4VCp/7DeXf8TCZjiUTCuru7T/31ecH/q8AhgAsLCw7fSU755zfLfJqxanH3n0+LXx21gYmXVqlUbHt728bGxiwcDp9kimvPWAEfwKWlJevt7TXvr9Tq6qqtrKy4X3dqasoCgYB7vNP3Xy/uWCre1U5z4fo9a5XyFhy4ZvXl975kB8++2s7Ojnsd73gIOee3gA+gd2vM5XKuRk9Pj83Ozlq9XncoNzY2rFqt2sjIiJXLZdva2rLx8XGLxWKWe5W229E/AIORG9b14LnVPr62i6nHVpl55Ktbml62bDbrHhsaGrLBwcHzW5/f3P8hxEOWz+fbWebn5x20aDRqjUbDgsGgu32ur69bMpm0dDrtri28ud8GGBq9ZZfuTlsz/8OC4bgdvJ3wZS48/eLeA3onEom41+ac3wK+v4Deh49SqdS+Pfb19VmxWLT+/n6r1WrWbDZdKe/xQqHgvrzTevfQkleOF3H3yWfb3NxsX5xKpY73RK46kwUOfQiZm5tzAD1kxz3xrgNrfP9w5OXB2E3LXk445Ht7ezY5OXnkc7jgbBfo+G+Y/f19W1xcdO//Op2/P4ycJJF3G/du3977Pw4F+Ec0BqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBYAoDQ/4wDEgLQAAKX5GQcgBqQFACjNzzgAMSAtAEBpfsYBiAFpAQBK8zMOQAxICwBQmp9xAGJAWgCA0vyMAxAD0gIAlOZnHIAYkBb4DeQgm7fp351tAAAAAElFTkSuQmCC</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="7.062500000001137" y="7.06249999999995" color="74,108,212" hidden="true"/><watcher scope="Person" s="yPosition" style="normal" x="7.062500000001137" y="21.893751412499967" color="74,108,212" hidden="true"/><watcher var="percent infected" style="normal" x="7.062500000001137" y="51.556254237500085" color="243,118,29" hidden="true"/><watcher scope="Stage" s="reportMouseX" style="normal" x="4.237499999999727" y="28.25000847499996" color="4,148,220" hidden="true"/><watcher scope="Stage" s="reportMouseY" style="normal" x="5.650000000000091" y="44.49375988749998" color="4,148,220" hidden="true"/><watcher scope="Stage" s="getTimer" style="normal" x="1.412499999999227" y="3.5312570625000177" color="4,148,220" hidden="true"/><watcher var="Timer" style="normal" x="10" y="10" color="243,118,29"/><sprite name="Person" idx="1" x="204" y="31" heading="355" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="3" color="80,80,80,1" pen="tip" id="15"><costumes><list id="16"><item><costume name="healthy" center-x="11" center-y="12" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAABj0lEQVQ4T7XVvU8TcRjA8e9zZ2s6EdqjvTMSWIyDg0wSlybgRiRGdifRKH8BDjbBRf8CNYKL7g5i3MTQRXRzcBAXicYe7bWNC2jS60Oub9diY5Uet93z8vk9l9w9Jwy6SqfOYmoaX01M8fGlyNiPz39rk77JopPFqN8AmQdG+tT8BF2nbqySLuQP53tRRahkHqNyc9ADdPKiT0ju3kLQdixEv51Okqi9Ai7+MxgWvmP/xGXGv1eCUIh69htg9ghgu2UDy70Uop5zH3R5CLDVKg+wCneEqjOBr1+HB1uCKZNCyb6LcC8yVMkJZXsTJRsZKuQFzy4DychQqARo5/2KCj4u1NkGPRPVlCBfgkmfAdeiQ3kueM5V0BfRobLQ/Ew9+z1wIQL4A5Y73URL9gzCxtCoMsuY+7Z7odwGHg4BL2G5j3q3VHBXzlxHZe2/YdFFUrtP/9yn7Ug1fZ6auYLolYG4b7wkXssxWvzYXdv/d9KY2j5HnTlEpvgdm+RX/GSjMVbfIbG3hcFrUu6nfgcfABvqbVU4FG1UAAAAAElFTkSuQmCC" id="17"/></item><item><costume name="sick" center-x="10" center-y="12" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAABlUlEQVQ4T62VPTNrURiF19rxcaIxkWD0musHqNDQoDAaP+BihnsbjdtdBp1K42PGxw/QmBRUNKK6P4BGb4jEaOQkbvYyJ4mII4Qju91rPbPOe979vkSNo3a3G1BXUcYrJp3Ljyysdqlorhe005DGALT7NEmQcchsM9X0z+9/A1T0YR3gr1rJi/faYKrld6W2DFSrIgi5cRD9n4OVVEICeWeM97wrFOXZrGjmGMDgl2Av4hOmwkNloGKZZQh/A8JK/wsrvA0vUB3qRN69qkwbECyEnC4q9jAPcTUg5LWN+sNv1s6f48QD3lTptaCBkx7Q1qF+5Wahom4GkBM0kq+IrpfwHMCP+gBxQcXcbUhTdQGSO1TEHYbRUV2AliOFp6e2zOmX37A/gZBgOjxQBEYe+2D+J76V0jb0867x7GU4xNwZSJuBoOQsb52tV9Om9Ok/Qe1WDKEafAHiJNPhvWfh2wHblu2xxi4aYeIjmiX2jTVLTDd7bVc+VVdAIa23S/J2NJs7WDOms2Cw9hrNTeNzCJnD93bLE8fIi1VhcO8UAAAAAElFTkSuQmCC" id="18"/></item><item><costume name="immune" center-x="11" center-y="12" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAABaUlEQVQ4T7XVvy9DURTA8e9Ju7BIOlhZxGBg8mORqE2IMEpMfgR/QPtENCWRvooZ8WNhNyA2FV2EzSDxIxGzREMXi+bIa73XlhfV9LrjOfd87n25950rVBiapBWhkRwBAuRQniXK3W9l4pdUm15gChgCGnzmvAFHwLZYpL/ny1BVhFU2UaYrfYGXF7aIMCOCujEP1Tgh6jhG6fkzWFQueGdQ4mScUBG1OQXCVYPFgpRY9Huo2iQAqwbQLbXFYl50jSY+eDIAFoggzaIJFhGWjaFKTNTmHPJXyNRIO+gLEDIlAhkH9e6XKfjf0HugxdQugQfn9PcQxo2hyr6DjiAcGERH87+p2lwCnQbgK7HoKqAr9BEgVTOaIywLnJU2lFlgvQZ4Tiw2yrpUfsdJJlB2qoaFSYmy+6OfugG1aQeWgOFKuKocimhMLK5L5/o+J1+H14YygNBx+1g/5ha9ZoN0t2cjCCdiceO38CeDy2brR3Gc8wAAAABJRU5ErkJggg==" id="19"/></item><item><costume name="doctor" center-x="12" center-y="12.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAWCAYAAAAvg9c4AAADB0lEQVRIS2NkIAbIrBJiYGGQY2Bk5GX4//8zwx+GRwxPwt7h0sqITeL/JAb21qNBhkdfaEVdeSfj9eK7gNzvfyysMLWsTH9+S3B+eKQj9GSbtcS1ZdXW684z5jH8hMljGPq/jUE47mBO8r5nujlPvwrLEvKINPfbx05Sl6cssp8yl7GK4S1IPdzQ/w0MTMfe6ii2XvYrPPlSNe7tT15eQgbC5IXZP382F7+9qFp3U7+V8JX7yIZKhR0uKj74Qivt1XcBHmINhKkT4/zwxV7i2qxVtn29YEP/tzMIFh2PS9n22Cj/5kcZaVINhKlX53/y1Ev23ETG/x0M/JfeyZkUHEus2P9MxwUpRMgw+z+Do9SVPYz/2xj8Zlx3c5h90yXy3BslCTJMQtFiJHLvBeP/dob5HRcDNKde9TR48lWYnVJDZbjf/gQZer3xbJhw58UAke9/2bCmW1Is4mT+9R8Upt/qzoazNJ8NYaUsPGFW/2cAGfq/5VwwQ+PZMIY//5lJcRRWtSyMf8GGvpl4xZuz5VwI55sfvBR7X4TjM9j7+5bctpXqvBCocOW9HMURpSP4CBxRlSdeqmo3nw9x3vbYmOIk5SV79gUonWowMDLoN5wLy5p3w8nm8VcRJnIDVpb7zb8kjX1HINm0mUHxxHvVjO4LAXHrHpiT7doghZMvSg02LIIY2sDAwcDGYLrpkWnOpKue3nuf6nGT6lpn6Utf87S3b/WTOz0FUUp1MvAy/GOw3PHYML3/irfbrif6PMSl2/8MbjIXvxTqbN3lIXt+JgMTw3GUJPS/gYGHgYPB6M5HidDV9628Ft+yl7v+QZoFl6s1BZ7+iVU7+ChU8dg2Ff4Xqxl+MJxjbGD4glnyNzCwMbAzyDAwMJg+/Cpqe+iZpumxl2pKDz6JCnz7zc7CzfKdQZ7n9Tdz8Tu37GWuH1PkeX2IgYHhNMNPhieMDQy/UEp+dNf8b2DgYmAFpwybj9+YHd99YLX8+YtJ/M8fRgYGxv93BXn+rJQW+7WW4TfDDcYGhm/I+gGGlyV7NujLzwAAAABJRU5ErkJggg==" id="20"/></item></list></costumes><sounds><list struct="atomic" id="21"></list></sounds><blocks></blocks><variables></variables><scripts><script x="21.0354609929077" y="17.840424531915573"><block s="receiveGo"></block><block s="removeClone"></block></script><script x="45.51063929787233" y="97.3794316241142"><block s="receiveOnClone"></block><block s="setHeading"><block s="reportRandom"><l>0</l><l>360</l></block></block><block s="doForever"><script><block s="doIfElse"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><block s="reportEquals"><block var="Slowing down"/><block s="reportBoolean"><l><bool>true</bool></l></block></block></block><script><block s="forward"><block s="reportQuotient"><block var="Speed"/><l>10</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></block></script><script x="114" y="336.3794316241142"><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>immune</l></block></script></block></script></block></script><script x="448.0000009999999" y="322.2127659574471"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>2</l></block><script><block s="doWait"><l>5</l></block><block s="doIf"><block s="reportAnd"><block s="reportEquals"><block var="heal"/><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="reportGreaterThan"><block var="Chance of the healing"/><block s="reportRandom"><l>1</l><l>100</l></block></block></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>immune</l></block></script></block></script></block></script></block></script></block></script><script x="422.51063929787233" y="30"><block s="receiveMessage"><l>start</l></block><block s="doForever"><script><block s="doIf"><block s="reportAnd"><block s="reportAnd"><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block><custom-block s="touching infected?"></custom-block></block><block s="reportNot"><custom-block s="touching immune?"></custom-block></block></block><script><block s="doWait"><l>2</l></block><block s="doIf"><block s="reportGreaterThan"><block var="Risk of Infection"/><block s="reportRandom"><l>1</l><l>100</l></block></block><script><block s="doSwitchToCostume"><l>sick</l></block></script></block></script></block></script></block></script><script x="887" y="202.37943162411375"><block s="receiveGo"></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="doWait"><l>.5</l></block><block s="doHideVar"><l>Timer</l></block><block s="show"></block><custom-block s="All of the Variables Set"></custom-block><custom-block s="Start Simulation"></custom-block><block s="doBroadcast"><l>start</l></block><block s="doShowVar"><l>Timer</l></block><block s="doForever"><script><custom-block s="Timer"></custom-block><custom-block s="Stop the program if all of the people are infected"></custom-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="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>Size of Population</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="Size of Population"/></custom-block><custom-block s="%s &lt;= %s"><block var="Size of Population"/><l>200</l></custom-block></block><script><block s="doAsk"><l>Enter number between 1 - 200 for the Population Size </l></block><block s="doSetVar"><l>Size of Population</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>Size of Population</l><block s="reportMonadic"><l><option>floor</option></l><block var="Size of Population"/></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>Enter number between 1 - 100 for the Initial Percentage of people infected.</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>Enter a number between 1 - 10 for the Speed at which they move around. (1 is slowest and 10 is fastest)</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="Start Simulation" 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="Size of Population"/><block var="Doctor"/></block></block></block></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><block var="Size of Population"/><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="doRepeat"><block var="Doctor"/><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="doRepeat"><block s="reportProduct"><block s="reportQuotient"><block var="People with Vaccination percentage"/><l>100</l></block><block s="reportDifference"><block s="reportDifference"><block var="Size of Population"/><block var="Doctor"/></block><block var="infected count"/></block></block><script><block s="doSwitchToCostume"><l>immune</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 the program if all of the people are 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="All of the Variables Set" 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 probality of infection"></custom-block><custom-block s="Set Slow down?"></custom-block><custom-block s="heal?"></custom-block><custom-block s="doctor"></custom-block><custom-block s="Vaccination percentage"></custom-block></script></block-definition><block-definition s="Set probality of infection" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Risk of Infection</l><l>0</l></block><block s="doUntil"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>1</l><block var="Risk of Infection"/></custom-block><custom-block s="%s &lt;= %s"><block var="Risk of Infection"/><l>100</l></custom-block></block><script><block s="doAsk"><l>Enter a number between 1 - 100 for the Probability of infection.</l></block><block s="doSetVar"><l>Risk of Infection</l><block s="getLastAnswer"></block></block></script></block><block s="doSetVar"><l>Risk of Infection</l><block s="reportMonadic"><l><option>floor</option></l><block var="Risk of Infection"/></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>Slowing down</l><l>0</l></block><block s="doUntil"><block s="reportOr"><custom-block s="%s &lt;= %s"><block s="reportBoolean"><l><bool>true</bool></l></block><block var="Slowing down"/></custom-block><custom-block s="%s &lt;= %s"><block s="reportBoolean"><l><bool>false</bool></l></block><block var="Slowing down"/></custom-block></block><script><block s="doAsk"><l>Enter yes or no if you want the infected people to slow down in speed.</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>yes</l></block><script><block s="doSetVar"><l>Slowing down</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doSetVar"><l>Slowing down</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block></script></block-definition><block-definition s="heal?" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>heal</l><l>0</l></block><block s="doAsk"><l>Do you want people to heal over time? (yes or no)</l></block><block s="doIf"><block s="reportEquals"><block s="getLastAnswer"></block><l>yes</l></block><script><block s="doSetVar"><l>heal</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doAsk"><l>What probability of healing do you want occur? (Enter a number between 1-100)</l></block><block s="doSetVar"><l>Chance of the healing</l><block s="getLastAnswer"></block></block></script></block><block s="doIf"><block s="reportEquals"><block s="getLastAnswer"></block><l>no</l></block><script><block s="doSetVar"><l>heal</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="immunity" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Immunity</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doAsk"><l>Would you like people who have been sick and healed to be immune? (yes or no)</l></block><block s="doIf"><block s="reportEquals"><l>yes</l><block s="getLastAnswer"></block></block><script><block s="doSetVar"><l>Immunity</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doIf"><block s="reportEquals"><l>no</l><block s="getLastAnswer"></block></block><script><block s="doSetVar"><l>Immunity</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block></script></block-definition><block-definition s="doctor" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doAsk"><l>How many doctors do you want? Choose from 0 to 3</l></block><block s="doIf"><block s="reportAnd"><custom-block s="%s &lt;= %s"><l>0</l><block s="getLastAnswer"></block></custom-block><custom-block s="%s &lt;= %s"><block s="getLastAnswer"></block><l>3</l></custom-block></block><script><block s="doSetVar"><l>Doctor</l><block s="getLastAnswer"></block></block></script></block></script></block-definition><block-definition s="Vaccination percentage" type="command" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doAsk"><l>Enter a number between 1 - 100 for the percentage of people that you want vaccinated</l></block><block s="doIf"><block s="reportOr"><custom-block s="%s &lt;= %s"><block s="getLastAnswer"></block><l>100</l></custom-block><custom-block s="%s &lt;= %s"><l>1</l><block s="getLastAnswer"></block></custom-block></block><script><block s="doSetVar"><l>People with Vaccination percentage</l><block s="getLastAnswer"></block></block></script></block></script></block-definition><block-definition s="touching doctor?" 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>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="touching immune?" 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>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></blocks><variables><variable name="percent infected"><l>60</l></variable><variable name="heal"><bool>true</bool></variable><variable name="Chance of the healing"><l>60</l></variable><variable name="Doctor"><l>2</l></variable><variable name="Speed"><l>8</l></variable><variable name="Slowing down"><bool>false</bool></variable><variable name="Risk of Infection"><l>70</l></variable><variable name="Size of Population"><l>100</l></variable><variable name="People with Vaccination percentage"><l>40</l></variable><variable name="Immunity"><bool>true</bool></variable><variable name="Timer"><l>43</l></variable></variables></project><media name="Disease Simulation" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>