<snapdata remixID="9309600"><project name="M7L1A3" app="Snap! 5.4, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAxNJREFUeAHt10FKYwEURNGfpvcRyI7MLDtyJ06duBz34czWBkdNaCgKCsL5E0Xz3sPDhcTT59dzeAiMBH6N7jpL4K+AAIUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAAp/yOC1ADUwEBTvkdF6AGpgICnPI7LkANTAUEOOV3XIAamAoIcMrvuAA1MBUQ4JTfcQFqYCogwCm/4wLUwFRAgFN+xwWogamAAKf8jgtQA1MBAU75HRegBqYCApzyOy5ADUwFBDjld1yAGpgKCHDK77gANTAVEOCU33EBamAqIMApv+MC1MBUQIBTfscFqIGpgACn/I4LUANTAQFO+R0XoAamAgKc8jsuQA1MBQQ45XdcgBqYCghwyu+4ADUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAA7/Cfz+fj5eXlzm/9uCVw+vx6Wssebc/1ej1+eN7f34/X19fjcrk82p85/XsE+B/+p6enf15xOp2Oj4+P4+3t7fj+3pMLeAvO7UwWBH4Xdjzsiu+34J/HW/CPRPerAO94fv8T8vz8fNxutzuv8OOGgM+ADUU7YgGfAWM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRC/wBwkorNs3SKPgAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGD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BgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/gABHhb3AgAAAABJRU5ErkJggg==</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="0" y="0" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="false" 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="325" y="292"><custom-block s="are the numbers of %l distinct ?"><block s="reportNewList"><list><l>1</l><l>3</l><l>5</l></list></block></custom-block></script><script x="324" y="333"><custom-block s="are the numbers of %l distinct ?"><block s="reportNewList"><list><l>1</l><l>3</l><l>3</l></list></block></custom-block></script><script x="353" y="384"><custom-block s="duplicates in %l"><block s="reportNewList"><list><l>1</l><l>2</l><l>3</l><l>3</l><l>1</l></list></block></custom-block></script></scripts></sprite><watcher var="example list" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="count" style="normal" x="10" y="124.00000399999999" color="243,118,29" hidden="true"/><watcher var="anypos" style="normal" x="10" y="145.00000599999998" color="243,118,29" hidden="true"/><watcher var="position" style="normal" x="10" y="166.00000799999998" color="243,118,29" hidden="true"/><watcher var="duplicate" style="normal" x="10" y="187.00000999999997" color="243,118,29" extX="80" extY="70" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="position of number %&apos;number&apos; in unsorted list %&apos;list&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListLength"><block var="list"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportListItem"><block var="i"/><block var="list"/></block><block var="number"/></block><script><block s="doReport"><block var="i"/></block></script></block></script></block><block s="doReport"><l>Item NIL</l></block></script></block-definition><block-definition s="position of number %&apos;number&apos; in sorted list %&apos;list&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListLength"><block var="list"/></block><script><block s="doIf"><block s="reportEquals"><block s="reportListItem"><block var="i"/><block var="list"/></block><block var="number"/></block><script><block s="doReport"><block var="i"/></block></script></block></script></block><block s="doReport"><l>0</l></block></script></block-definition><block-definition s="Say position of number %&apos;number&apos; in sorted list %&apos;list&apos;" type="command" category="looks"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%l"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block s="reportListLength"><block var="list"/></block><script><block s="doIf"><block s="reportGreaterThan"><block s="reportListItem"><block var="i"/><block var="list"/></block><block s="reportQuotient"><block s="reportListLength"><block var="list"/></block><l>2</l></block></block><script><block s="doChangeVar"><l>count</l><l>1</l></block></script></block></script></block><block s="doIf"><block s="reportLessThan"><block s="reportListItem"><block var="i"/><block var="list"/></block><block s="reportQuotient"><block s="reportListLength"><block var="list"/></block><l>2</l></block></block><script><block s="doChangeVar"><l>count</l><l>-1</l></block></script></block><block s="bubble"><block s="reportJoinWords"><list><l>Position in list is </l><custom-block s="position of number %n in sorted list %l"><block var="number"/><block var="list"/></custom-block><l> found in </l><block var="count"/><l> guesses. </l></list></block></block></script></block-definition><block-definition s="are the numbers of %&apos;list&apos; distinct ?" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doSetVar"><l>position</l><l>1</l></block><block s="doFor"><l>i</l><l>1</l><block s="reportListLength"><block var="list"/></block><script><block s="doSetVar"><l>anypos</l><block s="reportListItem"><block var="position"/><block var="list"/></block></block><block s="doDeleteFromList"><block var="position"/><block var="list"/></block><block s="doForEach"><l>item</l><block var="list"/><script><block s="doIf"><block s="reportEquals"><block var="item"/><block var="anypos"/></block><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block><block s="doInsertInList"><block var="anypos"/><block var="position"/><block var="list"/></block><block s="doChangeVar"><l>position</l><l>1</l></block></script></block><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block-definition><block-definition s="duplicates in %&apos;list&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doSetVar"><l>duplicate</l><block s="reportNewList"><list></list></block></block><block s="doRepeat"><block s="reportListLength"><block var="list"/></block><script><block s="doIf"><block s="reportEquals"><custom-block s="are the numbers of %l distinct ?"><block var="list"/></custom-block><block s="reportBoolean"><l><bool>false</bool></l></block></block><script><block s="doAddToList"><block var="anypos"/><block var="duplicate"/></block></script></block></script></block><block s="doReport"><block var="duplicate"/></block></script></block-definition></blocks><variables><variable name="example list"><list struct="atomic" id="233">1,4,6,9,15,19,21,24,29,45,73,74,82,87,99</list></variable><variable name="count"><l>3</l></variable><variable name="value"><l>7.5</l></variable><variable name="anypos"><l>5</l></variable><variable name="position"><l>4</l></variable><variable name="duplicate"><list struct="atomic" id="234">1,3</list></variable></variables></project><media name="M7L1A3" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>