<snapdata remixID="8636023"><project name="BJC.1x_HW_Starter_File" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,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</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" volume="100" pan="0" lines="round" ternary="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAOhUlEQVR4Xu3VwQkAAAjEMN1/abewn7jAQRC64wgQIECAAIF3gX1fNEiAAAECBAiMAHsCAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQIHLFxAWmhEwHPAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="Sprite" idx="1" x="1.1140583554351906" y="-0.7957559681696864" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="20"><block s="receiveGo"><comment w="214" collapsed="false">[DO NOT MODIFY THIS SCRIPT]&#xD;When you have correctly completed the remaining four gray reporter blocks, this script will play the Word Guessing Game!</comment></block><block s="doDeclareVariables"><list><l>secret</l><l>number of guesses</l><l>guess</l></list></block><block s="doSetVar"><l>secret</l><custom-block s="get secret word"></custom-block></block><block s="doSetVar"><l>number of guesses</l><l>1</l></block><block s="doUntil"><custom-block s="is guess %s correct for secret %s ?"><block var="guess"/><block var="secret"/></custom-block><script><block s="doAsk"><l>Guess the secret word!</l></block><block s="doSetVar"><l>guess</l><block s="getLastAnswer"></block></block><block s="doSayFor"><custom-block s="create response for guess %s secret %s after %n"><block var="guess"/><block var="secret"/><block var="number of guesses"/></custom-block><l>2</l></block><block s="doChangeVar"><l>number of guesses</l><l>1</l></block></script></block></script><script x="20" y="365"><custom-block s="is %s same length as %s ?"><l>rtythr</l><l>length</l></custom-block></script><script x="20" y="458"><custom-block s="count matching letters in guess %s and secret %s"><l>big</l><l>fib</l></custom-block></script><script x="20" y="539"><custom-block s="create response for guess %s secret %s after %n"><l>banana</l><l>banana</l><l>2</l></custom-block></script><comment x="266" y="284" w="192" collapsed="false">Checks if the two input words are the same. Returns &apos;True&apos; if they are identical, returns &apos;False&apos; otherwise.</comment><comment x="235" y="368" w="159" collapsed="false">Check that the two input words have the same length. Returns &apos;True&apos; if they have the same length, returns &apos;False&apos; otherwise.</comment><comment x="372" y="542" w="175" collapsed="false">Returns the correct response for the given guess, secret word, and number of guess attempts. See the HW1 Spec for exact details.</comment><script x="30" y="306"><custom-block s="is guess %s correct for secret %s ?"><l>cat</l><l>cat</l></custom-block></script><script x="615" y="153"><block var="guess"/></script><script x="515.97265625" y="135.000002"><block var="guess"/></script><script x="817.6572285625" y="223.80000399999994"><block var="secret"/></script><script x="844.500002" y="239.80000399999994"><block var="guess"/></script><script x="908" y="623"><block var="length 2"/></script><script x="718.671875" y="588.000002"><block s="reportStringSize"><l>world</l></block></script><script x="608" y="690.000002"><block var="length 1"/></script><script x="802.3134775625" y="653.8000030000001"><block s="reportLetter"><l>1</l><block var="secret"/></block></script><script x="552.6416025625" y="569.8000030000001"><block s="reportLetter"><l>1</l><block var="guess"/></block></script><script x="594.6416025625" y="614.8000010000001"><block s="reportEquals"><l></l><l></l></block></script><script x="507" y="655.8"><block s="doIf"><l/><script></script></block></script><script x="887" y="562"><block s="reportIsA"><l>5</l><l><option>number</option></l></block></script><script x="829.0302734375" y="513.000002"><block s="reportIsIdentical"><l></l><l></l></block></script><script x="1033.615235375" y="463.000004"><block var="guess"/></script><script x="976.7314463124999" y="162.80000100000007"><block s="reportStringSize"><l>world</l></block></script><script x="787" y="38"><block s="reportLetter"><block var="i"/><block var="guess"/></block></script><script x="745" y="134"><block s="reportEquals"><l></l><l></l></block></script><script x="1051.9921895" y="258.80000399999994"><block s="reportLetter"><l>1</l><block var="i"/></block></script><script x="1036.1523447499999" y="386.80000100000007"><block s="reportLetter"><l><option>last</option></l><l></l></block></script><script x="692.000002" y="729.800002"><block s="doAddToList"><l>1</l><l/></block></script><script x="913.0849639375001" y="683.8000030000001"><block var="length 1"/></script><script x="224.6416035625" y="624.800002"><block s="reportIsIdentical"><l></l><l></l></block></script><comment x="223" y="714" w="243.5" collapsed="false">Counts the number of matching letters in the two input words. Returns an integer between 0 and the length of the word equal to the number of letters.</comment><script x="1137.0224629375" y="323.800003"><block var="guess"/></script><script x="831.1523447499999" y="119.80000100000001"><block s="reportLetter"><l><option>last</option></l><l></l></block></script><script x="1053.9951191875" y="609.800002"><block s="reportAnd"><l><bool>false</bool></l><l/></block></script><script x="838.6416025624999" y="592.8000010000001"><block s="reportLessThan"><l></l><l></l></block></script><script x="684" y="652"><block s="doIf"><l/><script></script></block></script><script x="423" y="670.8"><block s="doIf"><l/><script></script></block></script><script x="350" y="653"><block s="doReport"><l></l></block></script><script x="166" y="625"><block s="reportEquals"><l></l><l></l></block></script><script x="190" y="702"><block s="doReport"><l></l></block></script></scripts></sprite><watcher scope="Stage" s="getLastAnswer" style="normal" x="0.06944444444434339" y="0.06944444444444287" color="4,148,220" hidden="true"/><watcher var="length 1" style="normal" x="10" y="10" color="243,118,29"/><watcher var="length 2" style="normal" x="10" y="31.000001999999995" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="get secret word" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doAsk"><l>what should the secret word be?</l></block><block s="doReport"><block s="getLastAnswer"></block></block></script></block-definition><block-definition s="is guess %&apos;guess&apos; correct for secret %&apos;secret&apos; ?" type="predicate" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doIfElse"><block s="reportEquals"><block var="guess"/><block var="secret"/></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="create response for guess %&apos;guess&apos; secret %&apos;secret&apos; after %&apos;number of guesses&apos;" type="reporter" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input><input type="%n"></input></inputs><script><block s="doIf"><block s="reportEquals"><block var="guess"/><block var="secret"/></block><script><block s="doReport"><custom-block s="join words %mult%txt"><list><l>you guess the secret word in</l><block var="number of guesses"/><l>guesses</l></list></custom-block></block></script></block><block s="doIf"><block s="reportLessThan"><block s="reportStringSize"><block var="guess"/></block><block s="reportStringSize"><block var="secret"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><list><l>the secret word has</l><block s="reportStringSize"><block var="secret"/></block></list></custom-block></block></script></block><block s="doIf"><block s="reportGreaterThan"><block s="reportStringSize"><block var="guess"/></block><block s="reportStringSize"><block var="secret"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><list><l>the secret word has</l><block s="reportStringSize"><block var="secret"/></block></list></custom-block></block></script></block><block s="doDeclareVariables"><list><l>matches</l></list></block><block s="doSetVar"><l>matches</l><l>0</l></block><block s="doFor"><l>i</l><l>1</l><block s="reportStringSize"><block var="guess"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="i"/><block var="guess"/></block><block s="reportLetter"><block var="i"/><block var="secret"/></block></block><script><block s="doChangeVar"><l>matches</l><l>1</l></block></script></block></script></block><block s="doReport"><block var="matches"/></block></script></block-definition><block-definition s="count matching letters in guess %&apos;guess&apos; and secret %&apos;secret&apos;" type="reporter" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doDeclareVariables"><list><l>matches</l></list></block><block s="doSetVar"><l>matches</l><l>0</l></block><block s="doFor"><l>i</l><l>1</l><block s="reportStringSize"><block var="guess"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="i"/><block var="guess"/></block><block s="reportLetter"><block var="i"/><block var="secret"/></block></block><script><block s="doChangeVar"><l>matches</l><l>1</l></block></script></block></script></block><block s="doReport"><block var="matches"/></block></script><scripts><comment x="333" y="201.99999999999994" w="90" collapsed="true">Requires: guess and target to be the same length.</comment></scripts></block-definition><block-definition s="is %&apos;guess&apos; same length as %&apos;secret&apos; ?" type="predicate" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input></inputs><script><block s="doIfElse"><block s="reportEquals"><block s="reportStringSize"><block var="guess"/></block><block s="reportStringSize"><block var="secret"/></block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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;commands&apos;" type="command" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%txt">Sprite</input><input type="%cs"></input></inputs><script><block s="doRun"><block s="reportAttributeOf"><block var="commands"/><block var="sprite"/></block><list></list></block></script></block-definition><block-definition s="ask for %&apos;reporter&apos; from %&apos;sprite&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%txt">Sprite</input></inputs><script><block s="doReport"><block s="evaluate"><block s="reportAttributeOf"><block var="reporter"/><block var="sprite"/></block><list></list></block></block></script></block-definition><block-definition s="tell %&apos;sprite&apos; %&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; %&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></blocks><variables><variable name="length 1"><l>93</l></variable><variable name="length 2"><l>0</l></variable></variables></project><media name="BJC.1x_HW_Starter_File" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>