<snapdata remixID="9504422"><project name=" Old CSP Reference Sheet Snap!" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes>This is a Snap! version of the AP CSP Reference Sheet (July 2015 eduction).&#xD;&#xD;Enjoy using it to prepare for the CSP exam!&#xD;&#xD;-The BJC (Beauty and Joy of Computing) team</notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAADUklEQVR4Xu3WsU0kURRE0RmDmIiOWDBwiII8EEngY7DaDGr1uRpmdbBfF92Ha3D9/v7+vvj5bwWu1+v1N3/cVYC/+c9z/m4CPDe0cCAgwAM8j54LCPDc0MKBgAAP8Dx6LiDAc0MLBwICPMDz6LnA3QX48fFxeX19vTw9PZ1/vYWbC9xdgH/Fvr6+Lg8PDzfH8wLnAgI8N7RwICDAAzyPngvcXYCPj4+Xz8/Py/v7+/nXW7i5wN0F6H/Amzfzoy8gwB/lNPavAgL8VzH3PypwdwG+vb1dnp+fLy8vLz8KYew2AncX4G2Y/NZKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NKQICVrN1JQIATk6NK4LcH+AdjIASX8bVjOgAAAABJRU5ErkJggg==</thumbnail><stage name="Stage" width="480" height="480" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="true" hyperops="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAATU0lEQVR4Xu3VwQkAAAjEMN1/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+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHKPqAeGd6qK0AAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts><script x="10" y="10"><block s="receiveInteraction"><l><option>clicked</option></l></block><block s="doBroadcast"><l>Toggle Cell State</l></block></script></scripts><sprites><sprite name="Sprite" idx="1" x="-220" y="190" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="5" color="0,0,0,1" pen="middle" id="12"><costumes><list id="13"><item><costume name="Arrow" center-x="16" center-y="16" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAB3UlEQVRYR+1XTcsBURg9g1goNrKw9jGspLBRMmKKrUKyEPZkLz/ASvkx8gusZSVK2ZCNsEGu7tQ7GYyv8fEu5lnO3DvPuec559yGAUAAMPhNkV81Fo+rAlAZUBkQGMjn86Tf78Pn8yEejyOTyXyNGbGR2+0mLpcLDMNgOp1Cp9MhEAiA53kkEomPAZJ8OBQKEYvFIsnEw+GA0WgEq9WKcDiMRqPxVjCSj3W7XdJqtaDVamWDebfbYTgcwuFwgOM41Go1RYAuNjebTdLr9UAb3SuNRoPVaoXZbAaWZRGLxVAul58CdHVxsVgky+US+/3+HgbJewposVhgvV7D6/U+JGhZtBzHEZPJ9BSA88XngqYOSyaTkp436fJ4PMTpdCoCcbqZCnoymUCv1yOXy6FSqTBfB0AdZTQakc1mUa1W5QFEIhFiNpsVnf50BMFgUNDEeaZcZaBQKBCq7ldFuNlsRBGm0+mbLL/FhvP5XLRhqVR63YadToe0221QO8nVdrvFeDyG3W5HNBoV5qhkTg9FMU0+m80mRHG9XlfU8MKqfw9YliU0zWjRy8hgMIAKh15GPM+/tekpCPE6HgwG8Pv9QpymUqmPNZRlQMkclez92knlQKoAVAb+BQM//T0/ApPKsB/1UYBlAAAAAElFTkSuQmCC" id="14"/></item><item><costume name="White" center-x="16" center-y="16" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAP0lEQVRYR+3XwQ0AIAzDQGf/oYPKEJSHvUCj+zVAgbBT7+G2M+J5mRyggAIKKKCAAgoooIACCiigwA8Cq+/5Afh0fB/cgB0KAAAAAElFTkSuQmCC" id="15"/></item><item><costume name="Grey" center-x="16" center-y="16" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAMElEQVRYR+3QQREAAAjDMKZ80kEGn1RBL2m781gMECBAgAABAgQIECBAgAABAt8CB2HrT6E4xellAAAAAElFTkSuQmCC" id="16"/></item><item><costume name="Black" center-x="16" center-y="16" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAL0lEQVRYR+3QQREAAAzCMPAvepPBJ1XQS5NchtUAAQIECBAgQIAAAQIECBAgsBZ4sCcgAbqAuEkAAAAASUVORK5CYII=" id="17"/></item><item><costume name="Cursor" center-x="5" center-y="19.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAnCAYAAAA2ANlVAAABRklEQVQ4T+3VwSvmQRzH8dezsrU3J5z4B9z2QIuWUNjk5GI5KFFWLuTgsrul1CKbrc1pC3Fz4eAu/ob1D2wiuUhYJX01T/16PPvbo8Pu7zI18575TjPv+fwKGMN39GHf0+8jRgupfwaLmE1tEf+BEfQWwRhoxQGm8A2bGEINzrJgwO+whsM08TVOY6AUjL4lTOM9tot7KAf2pFUbcJkHtqVVW3CTB3biKxpx9R8s9eUZjyd0CzejvSu9mUq8SVfWjg+YxDV+4bhoTxV2UIsK1OMnqrGKL1nNXuI3QrNwMkpf4AXuy/kYpZfRnEo/brMc+Izn+O+WXkHT397124xmt3kBMIB11OE8D9zCIOaw8CdwPoVnJHBMiNV3S+35hMjr8DCCNAyP5O0PODR7hT10IKLuKPN+h7ERfgY4gXF046TMX6ELnx8AKStephGHwogAAAAASUVORK5CYII=" id="18"/></item></list></costumes><sounds><list id="19"><item><sound name="Meow" sound="http://snap.berkeley.edu/snapsource/Sounds/Meow.wav" id="20"/></item></list></sounds><blocks></blocks><variables></variables><scripts><comment x="30" y="10" w="311" collapsed="false">Snap! translation of the AP CSP Reference Sheet (July 2015 edition).&#xD;Version 2016-05-10.</comment><comment x="30" y="68.5" w="146.5" collapsed="false">Assignment, Display, and Input</comment><script x="30" y="115"><custom-block s="%upvar $arrowLeft %s"><l>variable</l><l>BJC</l><comment w="204.5" collapsed="false">Solid for creating and assigning a variable,&#xD;Hollow for reassigning a value to a variable.&#xD;(Drag variable into slot left of hollow arrow)</comment></custom-block><custom-block s="%anyUE $arrowLeftOutline %s"><l></l><l></l></custom-block></script><script x="30" y="188.5"><custom-block s="DISPLAY %s"><l>Computer Science Principles</l><comment w="97.5" collapsed="false">wraps at column 20</comment></custom-block></script><script x="30" y="238"><custom-block s="INPUT"></custom-block></script><script x="30" y="260"><custom-block s="reset display"><comment w="216.5" collapsed="false">extra block, not on reference sheet. When switching from &quot;robot&quot; mode to &quot;display&quot; mode, it would probably be a good idea to click this.</comment></custom-block></script><script x="30" y="333.5"><custom-block s="newline"><comment w="243.00000000000006" collapsed="false">extra block, not on reference sheet. Prints a newline.</comment></custom-block></script><comment x="30" y="383" w="212" collapsed="false">Arithmetic Operators and Numeric Procedures</comment><script x="30" y="429.5"><block s="reportSum"><l></l><l></l></block></script><script x="30" y="455"><block s="reportDifference"><l></l><l></l></block></script><script x="30" y="480.5"><custom-block s="%n * %n"><l></l><l></l></custom-block></script><script x="30" y="506"><block s="reportQuotient"><l></l><l></l></block></script><script x="30" y="531.5000000000005"><custom-block s="%n MOD %n"><l></l><l></l></custom-block></script><script x="30" y="557.0000000000005"><custom-block s="RANDOM %n , %n"><l></l><l></l></custom-block></script><comment x="30" y="582.5000000000005" w="161" collapsed="false">Relational and Boolean Operators</comment><script x="30" y="629.0000000000005"><block s="reportEquals"><l></l><l></l></block></script><script x="30" y="654.5000000000005"><custom-block s="%s ≠ %s"><l></l><l></l></custom-block></script><script x="30" y="680.0000000000005"><block s="reportGreaterThan"><l></l><l></l></block></script><script x="30" y="705.5000000000005"><block s="reportLessThan"><l></l><l></l></block></script><script x="30" y="731.0000000000005"><custom-block s="%s ≥ %s"><l></l><l></l></custom-block></script><script x="30" y="756.5000000000005"><custom-block s="%s ≤ %s"><l></l><l></l></custom-block></script><script x="30" y="782.0000000000005"><custom-block s="NOT %b"><l/></custom-block></script><script x="30" y="805.5000000000005"><custom-block s="%b AND %b"><l/><l/></custom-block></script><script x="30" y="829.0000000000005"><custom-block s="%b OR %b"><l/><l/></custom-block></script><comment x="30" y="852.5000000000005" w="54.5" collapsed="false">Selection</comment><script x="30" y="899.0000000000005"><custom-block s="IF %b %cs"><l/><script></script></custom-block></script><script x="30" y="947.5"><custom-block s="IF %b %cs ELSE %cs"><l/><script></script><script></script></custom-block></script><comment x="30" y="1022.5000000000009" w="50" collapsed="false">Iteration</comment><script x="30" y="1069.000000000001"><custom-block s="REPEAT %n TIMES %cs"><l></l><script></script></custom-block></script><script x="30" y="1119.500000000001"><custom-block s="REPEAT UNTIL %boolUE %cs"><l/><script></script></custom-block></script><comment x="30" y="1168.0000000000005" w="81.5" collapsed="false">List Operations</comment><script x="30" y="1214.5"><custom-block s="%l %n"><l/><l></l></custom-block></script><script x="30" y="1240.0000000000005"><custom-block s="%l %n $arrowLeft %l %n"><l/><l></l><l/><l></l></custom-block></script><script x="30" y="1271.5000000000005"><custom-block s="%upvar $arrowLeft %mult%s"><l>data</l><list><l></l><l></l><l></l></list></custom-block></script><script x="30" y="1306.5000000000005"><custom-block s="FOR EACH %upvar IN %l %cs"><l>item</l><l/><script></script></custom-block></script><script x="30" y="1360.5000000000005"><custom-block s="INSERT %l %n %s"><l/><l></l><l></l></custom-block></script><script x="30" y="1392.0000000000005"><custom-block s="APPEND %l %s"><l/><l></l></custom-block></script><script x="30" y="1423.5000000000005"><custom-block s="REMOVE %l %n"><l/><l></l></custom-block></script><script x="30" y="1455.0000000000005"><custom-block s="LENGTH %l"><l/></custom-block></script><comment x="30" y="1478.5000000000005" w="315.5" collapsed="false">Procedures are defined with the &quot;make a block...&quot; context menu. Right-click (on Macs control-click) on the Scripts background to get to it. There&apos;s also a &quot;Make a block&quot; button in the Variables tab. Procedures that return values should be a &quot;Reporter&quot; (or &quot;Predicate&quot;).&#xD;Procedures that don&apos;t return values should be a &quot;Command&quot;.</comment><comment x="30" y="1573.0000000000005" w="311.5" collapsed="false">Robot &#xD;&#xD;Note that you can make your own mazes interactively! Click on the grid to toggle cell states between empty [white], goal [grey] and blocked [black]. You can also use the arrow keys to move the robot around, and down arrow says the status of CAN_MOVE around.&#xD;You can also convert a maze into a text description of it, allowing you to edit the maze offline, and load/save that way. MAZES is a global variable that has a few mazes stored this way we use in the demo.</comment><script x="30" y="1715.5"><custom-block s="MOVE_FORWARD"></custom-block></script><script x="30" y="1743.5000000000005"><custom-block s="ROTATE_LEFT"></custom-block></script><script x="30" y="1771.5000000000005"><custom-block s="ROTATE_RIGHT"></custom-block></script><script x="30" y="1799.5000000000005"><custom-block s="CAN_MOVE %s"><l>forward</l></custom-block></script><comment x="30" y="1825.5000000000005" w="307.5" collapsed="false">END OF SNAP! CODE TO MIRROR THE REFERENCE SHEET...</comment><comment x="30" y="1872" w="306.5" collapsed="false">These are &quot;hat blocks&quot; that let you move the robot around, test CAN_MOVE when you click on the four arrow keys, and respond when you interactively click on the grid.</comment><script x="30" y="1942.5"><block s="receiveKey"><l><option>up arrow</option></l></block><custom-block s="MOVE_FORWARD"></custom-block></script><script x="30" y="2003.9999999999995"><block s="receiveKey"><l><option>left arrow</option></l></block><custom-block s="ROTATE_LEFT"></custom-block></script><script x="30" y="2065.4999999999995"><block s="receiveKey"><l><option>right arrow</option></l></block><custom-block s="ROTATE_RIGHT"></custom-block></script><script x="30" y="2126.9999999999986"><block s="receiveKey"><l><option>down arrow</option></l></block><block s="doSayFor"><block s="reportNewList"><list><block s="reportNewList"><list><l>forward?</l><custom-block s="CAN_MOVE %s"><l>forward</l></custom-block></list></block><block s="reportNewList"><list><l>right?</l><custom-block s="CAN_MOVE %s"><l>right</l></custom-block></list></block><block s="reportNewList"><list><l>left?</l><custom-block s="CAN_MOVE %s"><l>left</l></custom-block></list></block><block s="reportNewList"><list><l>backward?</l><custom-block s="CAN_MOVE %s"><l>backward</l></custom-block></list></block></list></block><l>3</l></block></script><script x="30" y="2284.499999999999"><block s="receiveMessage"><l>Toggle Cell State</l></block><custom-block s="toggle cell state"></custom-block></script><comment x="30" y="2345.999999999998" w="305" collapsed="false">General-purpose robot helper functions.</comment><script x="30" y="2392.4999999999986"><block s="clear"><comment w="210.5" collapsed="false">These three blocks are used to reset the robot world. Clear the screen, draw a grid, and move the robot to the middle.</comment></block><custom-block s="$stage draw grid"></custom-block><custom-block s="$robot reset"></custom-block></script><script x="30" y="2465.9999999999986"><custom-block s="$robot at goal?"><comment w="212.5" collapsed="false">Is the robot over a grey goal square?</comment></custom-block></script><script x="30" y="2515.4999999999986"><custom-block s="$robot follow left wall until goal"><comment w="119.5" collapsed="false">The standard &quot;follow the left wall&quot; maze solver. </comment></custom-block></script><script x="30" y="2576.9999999999986"><custom-block s="Load Maze %s"><block var="MAZE"/><comment w="178.5" collapsed="false">Load the maze from its text equivalent</comment></custom-block></script><script x="30" y="2626.499999999998"><block s="doSetVar"><l>MAZE</l><custom-block s="Get Maze"></custom-block><comment w="135" collapsed="false">Get Maze returns the text equivalent of the maze.</comment></block></script><script x="30" y="2687.999999999998"><block s="doAddToList"><block var="MAZE"/><block var="MAZES"/><comment w="144" collapsed="false">Add the maze to the collection</comment></block></script><script x="30" y="2737.499999999998"><custom-block s="Load Maze %s"><block s="reportListItem"><l>4</l><block var="MAZES"/></block><comment w="81.5" collapsed="false">Load maze #3</comment></custom-block></script><comment x="30" y="2786.999999999998" w="300" collapsed="false">This sets things in motion when the project starts, with a nice message displayed and then demos the maze-solving algorithm.</comment><script x="30" y="2845.499999999998"><block s="receiveGo"></block><block s="clear"></block><custom-block s="reset display"></custom-block><custom-block s="DISPLAY %s"><l>This is a demo of</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>the CSP reference</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>sheet in Snap!</l></custom-block><custom-block s="newline"></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>We support DISPLAY</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>as well as robot</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>procedures.</l></custom-block><custom-block s="newline"></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>We&apos;ll now load some</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>mazes and follow</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>the left wall to the</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><l>goal (in grey).</l></custom-block><block s="doWait"><l>5</l></block><block s="doDeclareVariables"><list><l>maze num</l></list></block><block s="doSetVar"><l>maze num</l><l>1</l></block><block s="doForever"><script><block s="clear"></block><custom-block s="Load Maze %s"><block s="reportListItem"><block var="maze num"/><block var="MAZES"/></block></custom-block><custom-block s="$robot follow left wall until goal"></custom-block><block s="doPlaySoundUntilDone"><l>Meow</l></block><block s="doSetVar"><l>maze num</l><block s="reportSum"><block s="reportModulus"><block var="maze num"/><block s="reportListLength"><block var="MAZES"/></block></block><l>1</l></block></block></script></block></script><comment x="30" y="3538.999999999998" w="332.5" collapsed="false">What follows are Course and Exam Description sample coding questions</comment><script x="30" y="3585.499999999998"><custom-block s="CED Q5"><comment w="210.5" collapsed="false">CED Q5: Where does the robot end?</comment></custom-block></script><script x="30" y="3635"><custom-block s="CED Q8"><comment w="214" collapsed="false">CED Q8: Which maze does the program NOT correctly move the robot to the gray square?&#xD;You need to click the red &quot;stop&quot; button,&#xD;since this runs forever.</comment></custom-block></script><script x="30" y="3720.499999999999"><custom-block s="CED Q10"><comment w="141" collapsed="false">CED Q10: What is displayed?</comment></custom-block></script><script x="30" y="3770"><custom-block s="CED Q14"><comment w="200" collapsed="false">CED Q14: Which code segments move the robot to the gray square?</comment></custom-block></script><script x="30" y="3831.499999999999"><custom-block s="CED Q17"><comment w="214" collapsed="false">CED Q8: What is displayed?&#xD;You need to click the red &quot;stop&quot; button&#xD;since this runs forever.</comment></custom-block></script></scripts></sprite><watcher scope="Sprite" s="getScale" style="normal" x="4.98001410590291" y="4.9800141059027965" color="143,86,227" hidden="true"/><watcher scope="Sprite" s="xPosition" style="normal" x="4.98001410590291" y="23.904068704336154" color="74,108,212" hidden="true"/><watcher scope="Sprite" s="yPosition" style="normal" x="4.98001410590291" y="42.8281233027696" color="74,108,212" hidden="true"/><watcher scope="Sprite" s="getCostumeIdx" style="normal" x="4.98001410590291" y="61.752177901202955" color="143,86,227" hidden="true"/><watcher s="xPosition" style="normal" x="4.80967157109194" y="4.809671571093261" color="74,108,212" hidden="true"/><watcher s="yPosition" style="normal" x="4.80967157109194" y="23.086424503181796" color="74,108,212" hidden="true"/><watcher var="MAZES" style="normal" x="4.80967157109194" y="41.36317743527047" color="243,118,29" hidden="true"/><watcher var="MAZE" style="normal" x="4.065317637472845" y="0" color="243,118,29" hidden="true"/><watcher var="CHARACTERS" style="normal" x="3.845518167122009" y="215.76721989082247" color="243,118,29" hidden="true"/><watcher scope="Sprite" s="direction" style="normal" x="6.425824652777692" y="6.425824652777713" color="74,108,212" hidden="true"/><watcher s="getScale" style="normal" x="8.635531135530982" y="8.635531135531146" color="143,86,227" hidden="true"/><watcher var="CED Q5 MAZE" style="normal" x="12.812499999999773" y="12.812500000000007" color="243,118,29" hidden="true"/><watcher var="CED Q8b MAZE" style="normal" x="12.812499999999773" y="566.3124974375002" color="243,118,29" hidden="true"/><watcher var="CED Q8a MAZE" style="normal" x="16.656250000000227" y="14.093752562499994" color="243,118,29" hidden="true"/><watcher var="CED Q8c MAZE" style="normal" x="12.812499999999773" y="506.09374743750004" color="243,118,29" hidden="true"/><watcher var="CED Q8d MAZE" style="normal" x="15.375000000000227" y="442.0312474375001" color="243,118,29" hidden="true"/><watcher var="CED Q14 MAZE" style="normal" x="10" y="10" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="%&apos;variable&apos; $arrowLeft %&apos;value&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%s"></input></inputs><script><block s="doSetVar"><l>variable</l><block var="value"/></block></script></block-definition><block-definition s="RANDOM %&apos;a&apos; , %&apos;b&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doReport"><block s="reportRandom"><block var="a"/><block var="b"/></block></block></script></block-definition><block-definition s="%&apos;A&apos; ≠ %&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="reportNot"><block s="reportEquals"><l></l><l></l></block></block></block></script></block-definition><block-definition s="%&apos;A&apos; ≥ %&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="reportGreaterThan"><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="%&apos;A&apos; ≤ %&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="INPUT" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doAsk"><l></l></block><block s="doReport"><block s="getLastAnswer"></block></block></script></block-definition><block-definition s="REPEAT %&apos;N&apos; TIMES %&apos;BLOCK&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%cs"></input></inputs><script><block s="doRepeat"><block var="N"/><script><block s="doRun"><block var="BLOCK"/><list></list></block></script></block></script></block-definition><block-definition s="%&apos;data&apos; %&apos;index&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n"></input></inputs><script><block s="doReport"><block s="reportListItem"><block var="index"/><block var="data"/></block></block></script></block-definition><block-definition s="%&apos;datain&apos; %&apos;indexin&apos; $arrowLeft %&apos;dataout&apos; %&apos;indexout&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n"></input><input type="%l"></input><input type="%n"></input></inputs><script><block s="doReplaceInList"><block var="indexin"/><block var="datain"/><custom-block s="%l %n"><block var="dataout"/><block var="indexout"/></custom-block></block></script></block-definition><block-definition s="%&apos;data&apos; $arrowLeft %&apos;arg&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%mult%s"></input></inputs><script><block s="doSetVar"><l>data</l><block var="arg"/></block></script></block-definition><block-definition s="map %&apos;function&apos; over %&apos;lists&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%mult%l"></input></inputs><script><block s="doWarp"><script><block s="doDeclareVariables"><list><l>mapone</l><l>mapmany</l></list></block><block s="doSetVar"><l>mapone</l><block s="reifyScript"><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="doReport"><block s="reportCONS"><block s="evaluate"><block var="function"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><block s="evaluate"><block var="mapone"/><list><block s="reportCDR"><block var="data"/></block></list></block></block></block></script><list><l>data</l></list></block></block><block s="doSetVar"><l>mapmany</l><block s="reifyScript"><script><block s="doIf"><custom-block s="empty? %l"><block s="reportListItem"><l>1</l><block var="data lists"/></block></custom-block><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block><block s="doReport"><block s="reportCONS"><block s="evaluate"><block var="function"/><custom-block s="map %repRing over %mult%l"><block s="reifyReporter"><autolambda><block s="reportListItem"><l>1</l><l/></block></autolambda><list></list></block><list><block var="data lists"/></list></custom-block></block><block s="evaluate"><block var="mapmany"/><list><custom-block s="map %repRing over %mult%l"><block s="reifyReporter"><autolambda><block s="reportCDR"><l/></block></autolambda><list></list></block><list><block var="data lists"/></list></custom-block></list></block></block></block></script><list><l>data lists</l></list></block></block><block s="doIfElse"><custom-block s="empty? %l"><block s="reportCDR"><block var="lists"/></block></custom-block><script><block s="doReport"><block s="evaluate"><block var="mapone"/><list><block s="reportListItem"><l>1</l><block var="lists"/></block></list></block></block></script><script><block s="doReport"><block s="evaluate"><block var="mapmany"/><list><block var="lists"/></list></block></block></script></block></script></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="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></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></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="tell %&apos;sprite&apos; to %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">Sprite</input><input type="%cs"></input></inputs><script><block s="doRun"><block s="reportAttributeOf"><block var="action"/><block var="sprite"/></block><list></list></block></script></block-definition><block-definition s="ask %&apos;sprite&apos; for %&apos;expression&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">Sprite</input><input type="%repRing"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportAttributeOf"><block var="expression"/><block var="sprite"/></block><list></list></block></block></script></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="FOR EACH %&apos;item&apos; IN %&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="INSERT %&apos;data&apos; %&apos;i&apos; %&apos;value&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n"></input><input type="%s"></input></inputs><script><block s="doInsertInList"><block var="value"/><block var="i"/><block var="data"/></block></script></block-definition><block-definition s="APPEND %&apos;data&apos; %&apos;value&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%s"></input></inputs><script><block s="doAddToList"><block var="value"/><block var="data"/></block></script></block-definition><block-definition s="REMOVE %&apos;data&apos; %&apos;i&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n"></input></inputs><script><block s="doDeleteFromList"><block var="i"/><block var="data"/></block></script></block-definition><block-definition s="LENGTH %&apos;data&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportListLength"><block var="data"/></block></block></script></block-definition><block-definition s="label %&apos;text&apos; of size %&apos;size&apos;" type="command" category="pen"><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;    ide = this.parentThatIsA(IDE_Morph),&#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="DISPLAY %&apos;expression&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doIfElse"><custom-block s="%s ≤ %s"><block s="reportSum"><block var="CHARACTERS"/><block s="reportStringSize"><block var="expression"/></block></block><l>20</l></custom-block><script><custom-block s="label %txt of size %n"><block var="expression"/><l>36</l></custom-block><block s="doChangeVar"><l>CHARACTERS</l><block s="reportStringSize"><block var="expression"/></block></block></script><script><block s="doDeclareVariables"><list><l>leftthisrow</l></list></block><block s="doSetVar"><l>leftthisrow</l><block s="reportDifference"><l>20</l><block var="CHARACTERS"/></block></block><custom-block s="label %txt of size %n"><block s="reportJoinWords"><list><custom-block s="JS Substring %s from %n through %n"><block var="expression"/><l>1</l><block var="leftthisrow"/></custom-block><l>\</l></list></block><l>36</l></custom-block><custom-block s="newline"></custom-block><custom-block s="DISPLAY %s"><custom-block s="JS Substring %s from %n through %n"><block var="expression"/><block s="reportSum"><block var="leftthisrow"/><l>1</l></block><block s="reportStringSize"><block var="expression"/></block></custom-block></custom-block></script></block></script></block-definition><block-definition s="reset display" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSwitchToCostume"><l>Cursor</l></block><block s="doSetVar"><l>CHARACTERS</l><l>0</l></block><block s="clear"></block><block s="gotoXY"><l>-220</l><l>190</l></block><block s="setPenHSVA"><l><option>brightness</option></l><l>0</l></block><block s="setHeading"><l>90</l></block><block s="show"></block></script></block-definition><block-definition s="newline" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="gotoXY"><l>-220</l><block s="reportDifference"><block s="yPosition"></block><l>36</l></block></block><block s="doSetVar"><l>CHARACTERS</l><l>0</l></block></script><scripts><script x="151.5" y="17.099999999999994"><custom-block s="tell %s to %cs"><l>Displayer</l><script><block s="gotoXY"><l>-220</l><block s="reportDifference"><block s="yPosition"></block><l>36</l></block></block></script></custom-block><block s="doSetVar"><l>CHARACTERS</l><l>0</l></block></script></scripts></block-definition><block-definition s="$stage draw grid" type="command" category="pen"><comment x="0" y="0" w="128.5" collapsed="false">Draw a grid on the stage. This is an extra block, NOT on the reference sheet.</comment><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doWarp"><script><block s="doDeclareVariables"><list><l>SLOT</l><l>X</l><l>Y</l></list></block><block s="doSetVar"><l>SLOT</l><l>32</l></block><block s="doSetVar"><l>X</l><l>-240</l></block><block s="doSetVar"><l>Y</l><block s="reportSum"><l>-240</l><block var="SLOT"/></block></block><block s="setHeading"><l>90</l></block><block s="doRepeat"><l>14</l><script><block s="gotoXY"><block var="X"/><block var="Y"/></block><block s="down"></block><block s="forward"><l>480</l></block><block s="up"></block><block s="doChangeVar"><l>Y</l><block var="SLOT"/></block></script></block><block s="setHeading"><l>0</l></block><block s="doSetVar"><l>X</l><block s="reportSum"><l>-240</l><block var="SLOT"/></block></block><block s="doSetVar"><l>Y</l><l>-240</l></block><block s="doRepeat"><l>14</l><script><block s="gotoXY"><block var="X"/><block var="Y"/></block><block s="down"></block><block s="forward"><l>480</l></block><block s="up"></block><block s="doChangeVar"><l>X</l><block var="SLOT"/></block></script></block></script></block><block s="removeClone"></block></script></custom-block></script></block-definition><block-definition s="MOVE_FORWARD" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="forward"><l>32</l></block></script></block-definition><block-definition s="$robot reset" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="tell %s to %cs"><l>Displayer</l><script><block s="hide"></block></script></custom-block><block s="gotoXY"><l>0</l><l>0</l></block><block s="setHeading"><l>0</l></block><block s="doSwitchToCostume"><l>Arrow</l></block><block s="goToLayer"><l><option>front</option></l></block><block s="show"></block></script></block-definition><block-definition s="ROTATE_RIGHT" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="turn"><l>90</l></block></script></block-definition><block-definition s="ROTATE_LEFT" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="turnLeft"><l>90</l></block></script></block-definition><block-definition s="CAN_MOVE %&apos;direction&apos;" type="predicate" category="motion"><header></header><code></code><translations></translations><inputs><input type="%s" readonly="true">forward<options>left&#xD;right&#xD;forward&#xD;backward</options></input></inputs><script><block s="doDeclareVariables"><list><l>can move?</l></list></block><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doWarp"><script><block s="doIf"><block s="reportEquals"><block var="direction"/><l>right</l></block><script><custom-block s="ROTATE_RIGHT"></custom-block></script></block><block s="doIf"><block s="reportEquals"><block var="direction"/><l>left</l></block><script><custom-block s="ROTATE_LEFT"></custom-block></script></block><block s="doIf"><block s="reportEquals"><block var="direction"/><l>backward</l></block><script><custom-block s="ROTATE_LEFT"></custom-block><custom-block s="ROTATE_LEFT"></custom-block></script></block><custom-block s="MOVE_FORWARD"></custom-block><block s="setScale"><l>10</l></block><block s="doSetVar"><l>can move?</l><block s="reportNot"><block s="reportTouchingColor"><color>0,0,0,1</color></block></block></block></script></block><block s="removeClone"></block></script></custom-block><block s="doReport"><block var="can move?"/></block></script></block-definition><block-definition s="toggle cell state" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>X</l><l>Y</l><l>state</l></list></block><block s="doWarp"><script><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doSetVar"><l>X</l><block s="xPosition"></block></block><block s="doSetVar"><l>Y</l><block s="yPosition"></block></block><block s="gotoXY"><block s="reportProduct"><l>32</l><block s="reportRound"><block s="reportQuotient"><block s="reportMouseX"></block><l>32</l></block></block></block><block s="reportProduct"><l>32</l><block s="reportRound"><block s="reportQuotient"><block s="reportMouseY"></block><l>32</l></block></block></block></block><block s="doSetVar"><l>state</l><custom-block s="Cell State"></custom-block></block><block s="doIfElse"><block s="reportEquals"><block var="state"/><l>White</l></block><script><block s="doSwitchToCostume"><l>Black</l></block></script><script><block s="doIfElse"><block s="reportEquals"><block var="state"/><l>Black</l></block><script><block s="doSwitchToCostume"><l>Grey</l></block></script><script><block s="doIf"><block s="reportEquals"><block var="state"/><l>Grey</l></block><script><block s="doSwitchToCostume"><l>White</l></block></script></block></script></block></script></block><block s="doStamp"></block><block s="gotoXY"><block var="X"/><block var="Y"/></block><block s="removeClone"></block></script></custom-block></script></block></script></block-definition><block-definition s="Cell State" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doWarp"><script><block s="doDeclareVariables"><list><l>state</l><l>size</l></list></block><block s="doSetVar"><l>size</l><block s="getScale"></block></block><block s="setScale"><l>50</l></block><block s="doIfElse"><block s="reportTouchingColor"><color>127,127,127,1</color></block><script><block s="doSetVar"><l>state</l><l>Grey</l></block></script><script><block s="doIfElse"><block s="reportTouchingColor"><color>0,0,0,1</color></block><script><block s="doSetVar"><l>state</l><l>Black</l></block></script><script><block s="doSetVar"><l>state</l><l>White</l></block></script></block></script></block><block s="setScale"><block var="size"/></block></script></block><block s="doReport"><block var="state"/></block></script><scripts><script x="240.5" y="13.500000000000007"><block s="doDeclareVariables"><list><l>state</l><l>size</l></list></block><block s="doWarp"><script><block s="hide"></block><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doSetVar"><l>size</l><block s="getScale"></block></block><block s="setScale"><l>50</l></block><block s="doIfElse"><block s="reportTouchingColor"><color>127,127,127,1</color></block><script><block s="doSetVar"><l>state</l><l>Grey</l></block></script><script><block s="doIfElse"><block s="reportTouchingColor"><color>0,0,0,1</color></block><script><block s="doSetVar"><l>state</l><l>Black</l></block></script><script><block s="doSetVar"><l>state</l><l>White</l></block></script></block></script></block><block s="removeClone"></block></script></custom-block><block s="show"></block></script></block><block s="doReport"><block var="state"/></block></script></scripts></block-definition><block-definition s="all but first letter of %&apos;string&apos;" type="reporter" category="operators"><comment x="0" y="0" w="199" collapsed="false">Takes a text string as input, and reports a new text string containing all but the first character of the input.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>result</l><l>i</l></list></block><block s="doWarp"><script><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="string"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportSum"><l>0</l><l>0</l></block></block></block></script></block><block s="doSetVar"><l>result</l><l></l></block><block s="doSetVar"><l>i</l><l>2</l></block><block s="doUntil"><block s="reportGreaterThan"><block var="i"/><block s="reportStringSize"><block var="string"/></block></block><script><block s="doSetVar"><l>result</l><block s="reportJoinWords"><list><block var="result"/><block s="reportLetter"><block var="i"/><block var="string"/></block></list></block></block><block s="doChangeVar"><l>i</l><l>1</l></block></script></block><block s="doReport"><block var="result"/></block></script></block></script></block-definition><block-definition s="all but first word of %&apos;sentence&apos;" type="reporter" category="operators"><comment x="0" y="0" w="223.000001" collapsed="false">Takes a text string as input, divides it into words treating one or more spaces as a word separator (only spaces count; punctuation is part of the word) and reports a text string containing all but the first word, with one space between words and no spaces at the beginning or end. (Note: consider using SENTENCE-&gt;LIST and processing the resulting list instead of doing recursion on sentences in text string form.  List operations are faster.)</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>index</l><l>bf</l></list></block><block s="doWarp"><script><block s="doSetVar"><l>bf</l><l></l></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="sentence"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><script><block s="doReport"><l></l></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><l></l></block></script></block><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><script><block s="doSetVar"><l>bf</l><block s="reportJoinWords"><list><block var="bf"/><block s="reportLetter"><block var="index"/><block var="sentence"/></block></list></block></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doReport"><block var="bf"/></block></script></block></script></block-definition><block-definition s="all but last letter of %&apos;string&apos;" type="reporter" category="operators"><comment x="0" y="0" w="218" collapsed="false">Takes a text string as input, and reports a new text string containing all but the last letter of the input.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>result</l><l>i</l></list></block><block s="doWarp"><script><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="string"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportSum"><l>0</l><l>0</l></block></block></block></script></block><block s="doSetVar"><l>result</l><l></l></block><block s="doSetVar"><l>i</l><l>1</l></block><block s="doUntil"><block s="reportEquals"><block var="i"/><block s="reportStringSize"><block var="string"/></block></block><script><block s="doSetVar"><l>result</l><block s="reportJoinWords"><list><block var="result"/><block s="reportLetter"><block var="i"/><block var="string"/></block></list></block></block><block s="doChangeVar"><l>i</l><l>1</l></block></script></block><block s="doReport"><block var="result"/></block></script></block></script></block-definition><block-definition s="all but last word of %&apos;sentence&apos;" type="reporter" category="operators"><comment x="0" y="0" w="212" collapsed="false">Takes a text string as input, divides it into words treating one or more spaces as a word separator (only spaces count; punctuation is part of the word) and reports a text string containing all but the last word, with one space between words and no spaces at the beginning or end.  (Note: consider using SENTENCE-&gt;LIST and processing the resulting list instead of doing recursion on sentences in text string form.  List operations are faster.)</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>index</l><l>bl</l></list></block><block s="doWarp"><script><block s="doSetVar"><l>bl</l><l></l></block><block s="doSetVar"><l>index</l><block s="reportStringSize"><block var="sentence"/></block></block><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="sentence"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><l>1</l></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><l>1</l></block><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doIf"><block s="reportEquals"><block var="index"/><l>1</l></block><script><block s="doReport"><l></l></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><l>1</l></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><l></l></block></script></block><block s="doUntil"><block s="reportLessThan"><block var="index"/><l>1</l></block><script><block s="doSetVar"><l>bl</l><block s="reportJoinWords"><list><block s="reportLetter"><block var="index"/><block var="sentence"/></block><block var="bl"/></list></block></block><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doReport"><block var="bl"/></block></script></block></script></block-definition><block-definition s="first word of %&apos;sentence&apos;" type="reporter" category="operators"><comment x="0" y="0" w="236" collapsed="false">Takes a text string as input, divides it into words treating one or more spaces as a word separator (only spaces count; punctuation is part of the word) and reports a text string containing only the first word, with no spaces before or after it.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>index</l><l>first</l></list></block><block s="doWarp"><script><block s="doSetVar"><l>first</l><l></l></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="sentence"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doSetVar"><l>first</l><block s="reportJoinWords"><list><block var="first"/><block s="reportLetter"><block var="index"/><block var="sentence"/></block></list></block></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doSetVar"><l>first</l><block s="reportJoinWords"><list><block var="first"/><block s="reportLetter"><block var="index"/><block var="sentence"/></block></list></block></block></script></block><block s="doReport"><block var="first"/></block></script></block></script></block-definition><block-definition s="last letter of %&apos;word&apos;" type="reporter" category="operators"><comment x="0" y="0" w="260" collapsed="false">Takes a text string as input, and reports the last character in the string.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doReport"><block s="reportLetter"><block s="reportStringSize"><block var="word"/></block><block var="word"/></block></block></script></block-definition><block-definition s="last word of %&apos;sentence&apos;" type="reporter" category="operators"><comment x="0" y="0" w="262" collapsed="false">Takes a text string as input, divides it into words treating one or more spaces as a word separator (only spaces count; punctuation is part of the word) and reports a text string containing only the last word of the input, with no spaces before or after it.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>index</l><l>last</l></list></block><block s="doWarp"><script><block s="doSetVar"><l>last</l><l></l></block><block s="doSetVar"><l>index</l><block s="reportStringSize"><block var="sentence"/></block></block><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="sentence"/></block><l>0</l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><l>1</l></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block><script><block s="doReport"><block s="reportListItem"><l>1</l><block s="reportJoinWords"><list><l>empty </l><l>sentence</l></list></block></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><l>1</l></block><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doSetVar"><l>last</l><block s="reportJoinWords"><list><block s="reportLetter"><block var="index"/><block var="sentence"/></block><block var="last"/></list></block></block><block s="doChangeVar"><l>index</l><l>-1</l></block></script></block><block s="doIf"><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block><script><block s="doSetVar"><l>last</l><block s="reportJoinWords"><list><block s="reportLetter"><block var="index"/><block var="sentence"/></block><block var="last"/></list></block></block></script></block><block s="doReport"><block var="last"/></block></script></block></script></block-definition><block-definition s="empty word? %&apos;word&apos;" type="predicate" category="operators"><comment x="0" y="0" w="208" collapsed="false">Takes a text string as input, and reports TRUE if the string has no characters in it of any kind, otherwise false.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doReport"><block s="reportEquals"><block s="reportStringSize"><block var="word"/></block><l>0</l></block></block></script></block-definition><block-definition s="empty sentence? %&apos;sentence&apos;" type="predicate" category="operators"><comment x="0" y="0" w="221" collapsed="false">Takes a text string as input, and reports TRUE if the input contains no characters other than spaces (therefore, no words when the string is considered as a sentence), otherwise FALSE.</comment><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doDeclareVariables"><list><l>index</l></list></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block s="reportStringSize"><block var="sentence"/></block><l>0</l></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block var="index"/><block s="reportStringSize"><block var="sentence"/></block></block><block s="reportNot"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></block><script><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doReport"><block s="reportEquals"><block s="reportLetter"><block var="index"/><block var="sentence"/></block><l> </l></block></block></script></block-definition><block-definition s="Load Maze %&apos;maze&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doDeclareVariables"><list><l>X</l><l>Y</l><l>slot</l><l>row</l><l>cursor</l></list></block><block s="doSwitchToCostume"><l>Arrow</l></block><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doWarp"><script><block s="clear"></block><custom-block s="$stage draw grid"></custom-block><block s="setHeading"><l>90</l></block><block s="doSetVar"><l>row</l><l>7</l></block><custom-block s="for each %upvar of %l %cs"><l>line</l><block s="reportTextSplit"><block var="maze"/><l><option>line</option></l></block><script><block s="gotoXY"><block s="reportProduct"><l>32</l><l>-7</l></block><block s="reportProduct"><l>32</l><block var="row"/></block></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><l>15</l><script><block s="doSetVar"><l>slot</l><block s="reportLetter"><block var="i"/><block var="line"/></block></block><block s="doIfElse"><block s="reportEquals"><block var="slot"/><l>*</l></block><script><block s="doSwitchToCostume"><l>Black</l></block><block s="doStamp"></block></script><script><block s="doIfElse"><block s="reportEquals"><block var="slot"/><l>G</l></block><script><block s="doSwitchToCostume"><l>Grey</l></block><block s="doStamp"></block></script><script><block s="doIf"><block s="reportListContainsItem"><block s="reportNewList"><list><l>^</l><l>v</l><l>&lt;</l><l>&gt;</l></list></block><block var="slot"/></block><script><block s="doSetVar"><l>X</l><block s="xPosition"></block></block><block s="doSetVar"><l>Y</l><block s="yPosition"></block></block><block s="doSetVar"><l>cursor</l><block var="slot"/></block></script></block></script></block></script></block><custom-block s="MOVE_FORWARD"></custom-block></script></custom-block><block s="doChangeVar"><l>row</l><l>-1</l></block></script></custom-block></script></block><block s="removeClone"></block></script></custom-block><block s="gotoXY"><block var="X"/><block var="Y"/></block><block s="setHeading"><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="cursor"/><l>^</l></block><l>0</l><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="cursor"/><l>&gt;</l></block><l>90</l><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="cursor"/><l>V</l></block><l>180</l><l>-90</l></custom-block></custom-block></custom-block></block><block s="show"></block></script></block-definition><block-definition s="$robot at goal?" type="predicate" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doWarp"><script><block s="hide"></block><block s="doDeclareVariables"><list><l>at goal</l></list></block><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="setScale"><l>10</l></block><block s="doSetVar"><l>at goal</l><block s="reportTouchingColor"><color>127,127,127,1</color></block></block><block s="removeClone"></block></script></custom-block><block s="show"></block></script></block><block s="doReport"><block var="at goal"/></block></script></block-definition><block-definition s="$robot follow left wall until goal" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doUntil"><custom-block s="$robot at goal?"></custom-block><script><block s="doIfElse"><custom-block s="CAN_MOVE %s"><l>left</l></custom-block><script><custom-block s="ROTATE_LEFT"></custom-block><custom-block s="MOVE_FORWARD"><comment w="154" collapsed="false">With maze searching using the &quot;follow a wall&quot; approach, it&apos;s critical you rotate AND move when one of the sides is free. </comment></custom-block></script><script><block s="doIfElse"><custom-block s="CAN_MOVE %s"><l>forward</l></custom-block><script><custom-block s="MOVE_FORWARD"></custom-block></script><script><block s="doIfElse"><custom-block s="CAN_MOVE %s"><l>right</l></custom-block><script><custom-block s="ROTATE_RIGHT"></custom-block><custom-block s="MOVE_FORWARD"><comment w="40" collapsed="false">Ditto</comment></custom-block></script><script><custom-block s="ROTATE_LEFT"></custom-block><custom-block s="ROTATE_LEFT"></custom-block></script></block></script></block></script></block></script></block></script></block-definition><block-definition s="JS Substring %&apos;sentence&apos; from %&apos;start&apos; through %&apos;end&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%n"></input><input type="%n"></input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportJSFunction"><list><l>string</l><l>start</l><l>end</l></list><l>return string.substring(start-1,end);</l></block><list><block var="sentence"/><block var="start"/><block var="end"/></list></block></block></script></block-definition><block-definition s="Get Maze" type="reporter" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>original X</l><l>original Y</l><l>mazestring</l><l>state</l></list></block><block s="doSetVar"><l>mazestring</l><l></l></block><block s="doSetVar"><l>original X</l><block s="reportRound"><block s="reportQuotient"><block s="xPosition"></block><l>32</l></block></block></block><block s="doSetVar"><l>original Y</l><block s="reportRound"><block s="reportQuotient"><block s="yPosition"></block><l>32</l></block></block></block><custom-block s="tell %s to %cs"><custom-block s="clone"></custom-block><script><block s="doWarp"><script><block s="setHeading"><l>90</l></block><custom-block s="for %upvar = %n to %n %cs"><l>Y</l><l>7</l><l>-7</l><script><custom-block s="for %upvar = %n to %n %cs"><l>X</l><l>-7</l><l>7</l><script><block s="gotoXY"><block s="reportProduct"><l>32</l><block var="X"/></block><block s="reportProduct"><l>32</l><block var="Y"/></block></block><block s="doIfElse"><block s="reportAnd"><block s="reportEquals"><block var="X"/><block var="original X"/></block><block s="reportEquals"><block var="Y"/><block var="original Y"/></block></block><script><block s="doSetVar"><l>state</l><block s="reportModulus"><block s="reportAttributeOf"><l><option>direction</option></l><l>Robot</l></block><l>360</l></block></block><block s="doSetVar"><l>mazestring</l><block s="reportJoinWords"><list><block var="mazestring"/><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="state"/><l>90</l></block><l>&gt;</l><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="state"/><l>0</l></block><l>^</l><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="state"/><l>180</l></block><l>v</l><l>&lt;</l></custom-block></custom-block></custom-block></list></block></block></script><script><block s="doSetVar"><l>state</l><custom-block s="Cell State"></custom-block></block><block s="doSetVar"><l>mazestring</l><block s="reportJoinWords"><list><block var="mazestring"/><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="state"/><l>Black</l></block><l>*</l><custom-block s="if %b then %anyUE else %anyUE"><block s="reportEquals"><block var="state"/><l>Grey</l></block><l>G</l><l> </l></custom-block></custom-block></list></block></block></script></block></script></custom-block><block s="doSetVar"><l>mazestring</l><block s="reportJoinWords"><list><block var="mazestring"/><block s="reportUnicodeAsLetter"><l>10</l></block></list></block></block></script></custom-block></script></block><block s="removeClone"></block></script></custom-block><block s="doReport"><block var="mazestring"/></block></script></block-definition><block-definition s="%&apos;x&apos; MOD %&apos;y&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doReport"><block s="reportModulus"><block var="x"/><block var="y"/></block></block></script></block-definition><block-definition s="IF %&apos;test&apos; %&apos;then&apos; ELSE %&apos;else&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%cs"></input><input type="%cs"></input></inputs><script><block s="doIfElse"><block var="test"/><script><block s="doRun"><block var="then"/><list></list></block></script><script><block s="doRun"><block var="else"/><list></list></block></script></block></script></block-definition><block-definition s="%&apos;x&apos; * %&apos;y&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doReport"><block s="reportProduct"><block var="x"/><block var="y"/></block></block></script></block-definition><block-definition s="NOT %&apos;boolean&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%b"></input></inputs><script><block s="doReport"><block s="reportNot"><block var="boolean"/></block></block></script></block-definition><block-definition s="%&apos;x&apos; AND %&apos;y&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%b"></input></inputs><script><block s="doReport"><block s="reportAnd"><block var="x"/><block var="y"/></block></block></script></block-definition><block-definition s="%&apos;x&apos; OR %&apos;y&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%b"></input></inputs><script><block s="doReport"><block s="reportOr"><block var="x"/><block var="y"/></block></block></script></block-definition><block-definition s="IF %&apos;test&apos; %&apos;then&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%b"></input><input type="%cs"></input></inputs><script><block s="doIf"><block var="test"/><script><block s="doRun"><block var="then"/><list></list></block></script></block></script></block-definition><block-definition s="REPEAT UNTIL %&apos;test&apos; %&apos;code&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%boolUE"></input><input type="%cs"></input></inputs><script><block s="doUntil"><block s="evaluate"><block var="test"/><list></list></block><script><block s="doRun"><block var="code"/><list></list></block></script></block></script></block-definition><block-definition s="clone" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="createClone"><l><option>myself</option></l></block><block s="doReport"><block s="reportListItem"><l><option>last</option></l><block s="reportGet"><l><option>clones</option></l></block></block></block></script></block-definition><block-definition s="%&apos;var&apos; $arrowLeftOutline %&apos;value&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%anyUE"></input><input type="%s"></input></inputs><script><block s="doRun"><block s="reifyScript"><script><block s="doSetVar"><l></l><block var="value"/></block></script><list></list></block><list><block var="var"/></list></block></script></block-definition><block-definition s="CED Q5" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><custom-block s="Load Maze %s"><block var="CED Q5 MAZE"/></custom-block><custom-block s="%upvar $arrowLeft %s"><l>n</l><l>3</l></custom-block><custom-block s="REPEAT %n TIMES %cs"><l>3</l><script><custom-block s="REPEAT %n TIMES %cs"><block var="n"/><script><custom-block s="MOVE_FORWARD"></custom-block></script></custom-block><custom-block s="ROTATE_LEFT"></custom-block><custom-block s="%anyUE $arrowLeftOutline %s"><block var="n"/><block s="reportDifference"><block var="n"/><l>1</l></block></custom-block></script></custom-block><block s="bubble"><l>Answer: A</l></block></script></block-definition><block-definition s="CED Q8" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><custom-block s="%upvar $arrowLeft %mult%s"><l>maze numbers</l><list><l>1</l><l>2</l><l>3</l><l>4</l></list></custom-block><custom-block s="FOR EACH %upvar IN %l %cs"><l>maze number</l><block var="maze numbers"/><script><custom-block s="Load Maze %s"><block s="reportListItem"><block var="maze number"/><block s="reportNewList"><list><block var="CED Q8a MAZE"/><block var="CED Q8b MAZE"/><block var="CED Q8c MAZE"/><block var="CED Q8d MAZE"/></list></block></block></custom-block><block s="bubble"><block s="reportJoinWords"><list><l>Running the code on grid </l><block s="reportUnicodeAsLetter"><block s="reportDifference"><block s="reportSum"><block var="maze number"/><block s="reportUnicode"><l>A</l></block></block><l>1</l></block></block></list></block></block><custom-block s="REPEAT UNTIL %boolUE %cs"><custom-block s="$robot at goal?"></custom-block><script><custom-block s="IF %b %cs"><custom-block s="CAN_MOVE %s"><l>forward</l></custom-block><script><custom-block s="MOVE_FORWARD"></custom-block></script></custom-block><custom-block s="IF %b %cs"><custom-block s="CAN_MOVE %s"><l>right</l></custom-block><script><custom-block s="ROTATE_RIGHT"></custom-block></script></custom-block><custom-block s="IF %b %cs"><custom-block s="CAN_MOVE %s"><l>left</l></custom-block><script><custom-block s="ROTATE_LEFT"></custom-block></script></custom-block></script></custom-block><block s="doWait"><l>1</l></block></script></custom-block></script></block-definition><block-definition s="CED Q10" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="reset display"></custom-block><custom-block s="%upvar $arrowLeft %s"><l>onTime</l><block s="reportBoolean"><l><bool>false</bool></l></block></custom-block><custom-block s="%upvar $arrowLeft %s"><l>absent</l><block s="reportBoolean"><l><bool>false</bool></l></block></custom-block><custom-block s="IF %b %cs ELSE %cs"><block var="onTime"/><script><custom-block s="DISPLAY %s"><l>Hello</l></custom-block></script><script><custom-block s="IF %b %cs ELSE %cs"><block var="absent"/><script><custom-block s="DISPLAY %s"><l>Is anyone there?</l></custom-block></script><script><custom-block s="DISPLAY %s"><l>Better late than never.</l></custom-block></script></custom-block></script></custom-block><block s="bubble"><l>Answer: B</l></block></script></block-definition><block-definition s="CED Q14" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>delay</l></list></block><block s="doSetVar"><l>delay</l><l>4</l></block><custom-block s="Load Maze %s"><block var="CED Q14 MAZE"/></custom-block><block s="bubble"><l>Trying A...</l></block><custom-block s="MoveAndTurn %n %n"><l>1</l><l>2</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>3</l><l>4</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>0</l><l>2</l></custom-block><block s="doSayFor"><l>Trying A...nope!</l><block var="delay"/></block><custom-block s="Load Maze %s"><block var="CED Q14 MAZE"/></custom-block><block s="bubble"><l>Trying B...</l></block><custom-block s="MoveAndTurn %n %n"><l>2</l><l>1</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>4</l><l>1</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>2</l><l>0</l></custom-block><block s="doSayFor"><l>Trying B...nope!</l><block var="delay"/></block><custom-block s="Load Maze %s"><block var="CED Q14 MAZE"/></custom-block><block s="bubble"><l>Trying C...</l></block><custom-block s="MoveAndTurn %n %n"><l>2</l><l>1</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>4</l><l>3</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>2</l><l>0</l></custom-block><block s="doSayFor"><l>Trying C...yep!</l><block var="delay"/></block><custom-block s="Load Maze %s"><block var="CED Q14 MAZE"/></custom-block><block s="bubble"><l>Trying D...</l></block><custom-block s="MoveAndTurn %n %n"><l>3</l><l>1</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>5</l><l>3</l></custom-block><custom-block s="MoveAndTurn %n %n"><l>3</l><l>0</l></custom-block><block s="doSayFor"><l>Trying D...nope!</l><block var="delay"/></block></script></block-definition><block-definition s="MoveAndTurn %&apos;numMoves&apos; %&apos;numTurns&apos;" type="command" category="motion"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><custom-block s="REPEAT %n TIMES %cs"><block var="numMoves"/><script><custom-block s="MOVE_FORWARD"></custom-block></script></custom-block><custom-block s="REPEAT %n TIMES %cs"><block var="numTurns"/><script><custom-block s="ROTATE_RIGHT"></custom-block></script></custom-block></script></block-definition><block-definition s="CED Q17" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="reset display"></custom-block><custom-block s="%upvar $arrowLeft %s"><l>i</l><l>0</l></custom-block><custom-block s="%upvar $arrowLeft %s"><l>sum</l><l>0</l></custom-block><block s="doSayFor"><l>Answer: D (infinite loop)</l><l>5</l></block><custom-block s="REPEAT UNTIL %boolUE %cs"><block s="reportEquals"><block var="i"/><l>4</l></block><script><custom-block s="%anyUE $arrowLeftOutline %s"><block var="i"/><l>1</l></custom-block><custom-block s="%anyUE $arrowLeftOutline %s"><block var="sum"/><block s="reportSum"><block var="sum"/><l>1</l></block></custom-block><custom-block s="%anyUE $arrowLeftOutline %s"><block var="i"/><block s="reportSum"><block var="i"/><l>1</l></block></custom-block></script></custom-block><custom-block s="DISPLAY %s"><block var="sum"/></custom-block></script></block-definition></blocks><variables><variable name="MAZES"><list struct="atomic" id="2892">&quot;***************&#xD;***************&#xD;**   ***G*** **&#xD;** * *** *** **&#xD;**   ***     ** &#xD;** ******* **** &#xD;** *** *** ****&#xD;** *** *** ****&#xD;**           **&#xD;****** ***** **&#xD;****** ***** **&#xD;****** ***** **&#xD;**&gt;      *** **&#xD;***************&#xD;***************&quot;,&quot;***************&#xD;***************&#xD;***         ***&#xD;***** *********&#xD;***** *********&#xD;***** *********&#xD;*G            *&#xD;*** *** *** * *&#xD;*** *** ***   *&#xD;*** *** ***** *&#xD;*         *** *&#xD;*** *** ***** *&#xD;*** *** ***&gt;  *&#xD;***************&#xD;***************&quot;,&quot;               &#xD;               &#xD;               &#xD;               &#xD;               &#xD;      ******   &#xD;      **G **   &#xD;      *^* **   &#xD;      * * **   &#xD;      *   G*   &#xD;      *G****   &#xD;      ******   &#xD;               &#xD;               &#xD;               &#xD;&quot;,&quot;               &#xD; ***  ***  *** &#xD; *    *    * * &#xD; *    ***  *** &#xD; *      *  *   &#xD; ***  ***  *   &#xD;               &#xD; * *  ***  * * &#xD; * *  * *  * * &#xD;  *   ***   *  &#xD;  *   * *   *  &#xD;  *   * *   *  &#xD; *****   ***** &#xD;     G*^*      &#xD;               &#xD;&quot;</list></variable><variable name="MAZE"><l>               &#xD; ***  ***  *** &#xD; *    *    * * &#xD; *    ***  *** &#xD; *      *  *   &#xD; ***  ***  *   &#xD;               &#xD; * *  ***  * * &#xD; * *  * *  * * &#xD;  *   ***   *  &#xD;  *   * *   *  &#xD;  *   * *   *  &#xD; *****   ***** &#xD;     G*^*      &#xD;               &#xD;</l></variable><variable name="CHARACTERS"><l>0</l></variable><variable name="CED Q5 MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;    *******    &#xD;    *     *    &#xD;    *     *    &#xD;    *     *    &#xD;    *     *    &#xD;    *&gt;    *    &#xD;    *******    &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable><variable name="CED Q8a MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;     *****     &#xD;     *  G*     &#xD;     * ***     &#xD;     * ***     &#xD;     * ***     &#xD;     *  &lt;*     &#xD;     *****     &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable><variable name="CED Q8b MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;     *****     &#xD;     *G  *     &#xD;     *** *     &#xD;     *   *     &#xD;     * ***     &#xD;     *  &lt;*     &#xD;     *****     &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable><variable name="CED Q8c MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;     *****     &#xD;     *  G*     &#xD;     ** **     &#xD;     *  **     &#xD;     * ***     &#xD;     *  &lt;*     &#xD;     *****     &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable><variable name="CED Q8d MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;     *****     &#xD;     *G  *     &#xD;     ** **     &#xD;     *  **     &#xD;     * ***     &#xD;     *  &lt;*     &#xD;     *****     &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable><variable name="CED Q14 MAZE"><l>               &#xD;               &#xD;               &#xD;               &#xD;    *******    &#xD;    *****G*    &#xD;    ***** *    &#xD;    *     *    &#xD;    * *****    &#xD;    *^*****    &#xD;    *******    &#xD;               &#xD;               &#xD;               &#xD;               &#xD;</l></variable></variables></project><media name=" Old CSP Reference Sheet Snap!" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>