<snapdata remixID="9386243"><project name="mastermind" app="Snap! 5.4, 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" penlog="false" volume="100" pan="0" lines="round" ternary="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAACtUlEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Bo3+AAF/RMkcAAAAAElFTkSuQmCC</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="ColorBox2" idx="2" x="-35" y="160" heading="180" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="5" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="r" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+KzB8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAVofxnMwwF1WAAAAAElFTkSuQmCC" id="10"/></item><item><costume name="o" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+N/B8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAclZVRpw4nKLAAAAAElFTkSuQmCC" id="11"/></item><item><costume name="y" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBg+P+O4T+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgCxrtvGW41JUQAAAABJRU5ErkJggg==" id="12"/></item><item><costume name="g" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYPgp8J9iTDWD4AaOGjZq2Khho4YNoGFULBwBntWur6qAkpMAAAAASUVORK5CYII=" id="13"/></item><item><costume name="b" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYND6/59iTDWD4AaOGjZq2Khho4YNoGFULBwB3kbY76lji0kAAAAASUVORK5CYII=" id="14"/></item><item><costume name="v" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBgmMnw/z+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgDDR2uM75Se2gAAAABJRU5ErkJggg==" id="15"/></item></list></costumes><sounds><list struct="atomic" id="16"></list></sounds><blocks></blocks><variables></variables><scripts><script x="26" y="139"><block s="receiveMessage"><l>Answer</l></block><block s="doSwitchToCostume"><block s="reportLetter"><l>1</l><block s="reportListItem"><l>2</l><block var="usercodelist"/></block></block></block><block s="doStamp"></block><block s="forward"><l>20</l></block></script><script x="21" y="18"><block s="receiveMessage"><l>setup</l></block><block s="hide"></block><block s="gotoXY"><l>-35</l><l>160</l></block><block s="setHeading"><l>180</l></block></script></scripts></sprite><sprite name="ColorBox3" idx="3" x="-15" y="160" heading="180" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="2" color="80,80,80,1" pen="tip" id="41"><costumes><list id="42"><item><costume name="r" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+KzB8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAVofxnMwwF1WAAAAAElFTkSuQmCC" id="43"/></item><item><costume name="o" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+N/B8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAclZVRpw4nKLAAAAAElFTkSuQmCC" id="44"/></item><item><costume name="y" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBg+P+O4T+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgCxrtvGW41JUQAAAABJRU5ErkJggg==" id="45"/></item><item><costume name="g" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYPgp8J9iTDWD4AaOGjZq2Khho4YNoGFULBwBntWur6qAkpMAAAAASUVORK5CYII=" id="46"/></item><item><costume name="b" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYND6/59iTDWD4AaOGjZq2Khho4YNoGFULBwB3kbY76lji0kAAAAASUVORK5CYII=" id="47"/></item><item><costume name="v" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBgmMnw/z+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgDDR2uM75Se2gAAAABJRU5ErkJggg==" id="48"/></item></list></costumes><sounds><list struct="atomic" id="49"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="10"><block s="receiveMessage"><l>Answer</l></block><block s="doSwitchToCostume"><block s="reportLetter"><l>1</l><block s="reportListItem"><l>3</l><block var="usercodelist"/></block></block></block><block s="doStamp"></block><block s="forward"><l>20</l></block></script><script x="19" y="157"><block s="receiveMessage"><l>setup</l></block><block s="hide"></block><block s="gotoXY"><l>-15</l><l>160</l></block><block s="setHeading"><l>180</l></block></script></scripts></sprite><sprite name="ColorBox4" idx="4" x="5" y="160" heading="180" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="3" color="80,80,80,1" pen="tip" id="74"><costumes><list id="75"><item><costume name="r" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+KzB8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAVofxnMwwF1WAAAAAElFTkSuQmCC" id="76"/></item><item><costume name="o" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+N/B8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAclZVRpw4nKLAAAAAElFTkSuQmCC" id="77"/></item><item><costume name="y" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBg+P+O4T+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgCxrtvGW41JUQAAAABJRU5ErkJggg==" id="78"/></item><item><costume name="g" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYPgp8J9iTDWD4AaOGjZq2Khho4YNoGFULBwBntWur6qAkpMAAAAASUVORK5CYII=" id="79"/></item><item><costume name="b" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYND6/59iTDWD4AaOGjZq2Khho4YNoGFULBwB3kbY76lji0kAAAAASUVORK5CYII=" id="80"/></item><item><costume name="v" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBgmMnw/z+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgDDR2uM75Se2gAAAABJRU5ErkJggg==" id="81"/></item></list></costumes><sounds><list struct="atomic" id="82"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="127"><block s="receiveMessage"><l>Answer</l></block><block s="doSwitchToCostume"><block s="reportLetter"><l>1</l><block s="reportListItem"><l>4</l><block var="usercodelist"/></block></block></block><block s="doStamp"></block><block s="forward"><l>20</l></block></script><script x="21" y="241"><block s="receiveMessage"><l>setup</l></block><block s="hide"></block><block s="gotoXY"><l>5</l><l>160</l></block><block s="setHeading"><l>180</l></block></script></scripts></sprite><sprite name="ColorBox1" idx="1" x="-55" y="160" heading="180" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="2" color="80,80,80,1" pen="tip" id="107"><costumes><list id="108"><item><costume name="r" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+KzB8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAVofxnMwwF1WAAAAAElFTkSuQmCC" id="109"/></item><item><costume name="o" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJ0lEQVQ4jWNgYGBg+N/B8J9SzEAtg+AGjho2atioYaOGDaBh1CwcAclZVRpw4nKLAAAAAElFTkSuQmCC" id="110"/></item><item><costume name="y" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBg+P+O4T+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgCxrtvGW41JUQAAAABJRU5ErkJggg==" id="111"/></item><item><costume name="g" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYPgp8J9iTDWD4AaOGjZq2Khho4YNoGFULBwBntWur6qAkpMAAAAASUVORK5CYII=" id="112"/></item><item><costume name="b" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAJklEQVQ4jWNgYGBgYND6/59iTDWD4AaOGjZq2Khho4YNoGFULBwB3kbY76lji0kAAAAASUVORK5CYII=" id="113"/></item><item><costume name="v" center-x="9" center-y="9" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAKElEQVQ4jWNgYGBgmMnw/z+lmIFaBsENHDVs1LBRw0YNG0DDqFk4AgDDR2uM75Se2gAAAABJRU5ErkJggg==" id="114"/></item></list></costumes><sounds><list struct="atomic" id="115"></list></sounds><blocks></blocks><variables></variables><scripts><script x="21" y="1317.000000000004"><block var="computerlist"/></script><script x="21" y="1287.0000000000043"><block var="usercodelist"/></script><script x="10" y="11.000000000000455"><block s="receiveMessage"><l>Answer</l></block><block s="show"></block><block s="doSwitchToCostume"><block s="reportLetter"><l>1</l><block s="reportListItem"><l>1</l><block var="usercodelist"/></block></block></block><block s="doStamp"></block><block s="hide"></block><block s="forward"><l>20</l></block></script><script x="12" y="158.0000000000001"><block s="receiveMessage"><l>setup</l></block><block s="hide"></block><block s="gotoXY"><l>-55</l><l>160</l></block><block s="setHeading"><l>180</l></block></script></scripts></sprite><sprite name="Sprite" idx="5" x="-204.86631016042793" y="-123.79679144385017" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="0,14.789999999999946,147.89999999999998,1" pen="tip" id="142"><costumes><list struct="atomic" id="143"></list></costumes><sounds><list struct="atomic" id="144"></list></sounds><blocks></blocks><variables></variables><scripts><script x="403" y="866.9999999999992"><block var="alphabet"/></script><script x="36" y="852.9999999999992"><block s="doSetVar"><l>alphabet</l><l>abcdefghijklmnopqrstuvwxyz</l></block></script><script x="14" y="10"><block s="receiveGo"></block><custom-block s="Starting Script"></custom-block><custom-block s="User Interaaction"><comment w="90" collapsed="false">Code that allows the computer to understand the input.</comment></custom-block></script><script x="542" y="25"><block s="receiveKey"><l><option>up arrow</option></l></block><block s="doShowVar"><l>computerlist</l></block></script><script x="352" y="22.000000000000057"><block s="receiveKey"><l><option>space</option></l></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="544" y="103.33333333333333"><block s="receiveKey"><l><option>down arrow</option></l></block><block s="doHideVar"><l>computerlist</l></block></script></scripts></sprite><watcher scope="ColorBox1" s="xPosition" style="normal" x="10.000000000000455" y="10.000000000000028" color="74,108,212" hidden="true"/><watcher scope="ColorBox1" s="yPosition" style="normal" x="10.000000000000455" y="40.00000200000001" color="74,108,212" hidden="true"/><watcher scope="ColorBox2" s="xPosition" style="normal" x="10.000000000000455" y="70.00000400000006" color="74,108,212" hidden="true"/><watcher scope="ColorBox2" s="yPosition" style="normal" x="10.000000000000455" y="100.00000600000013" color="74,108,212" hidden="true"/><watcher scope="ColorBox3" s="xPosition" style="normal" x="10.000000000000455" y="130.0000080000002" color="74,108,212" hidden="true"/><watcher scope="ColorBox3" s="yPosition" style="normal" x="10.000000000000455" y="160.00001000000003" color="74,108,212" hidden="true"/><watcher scope="ColorBox4" s="xPosition" style="normal" x="10.000000000000455" y="190.000012" color="74,108,212" hidden="true"/><watcher scope="ColorBox4" s="yPosition" style="normal" x="10.000000000000455" y="220.00001400000008" color="74,108,212" hidden="true"/><watcher var="index" style="normal" x="10.000000000000455" y="283.0000200000003" color="243,118,29" hidden="true"/><watcher var="x" style="normal" x="10.000000000000455" y="304.0000220000001" color="243,118,29" hidden="true"/><watcher var="y" style="normal" x="10.000000000000455" y="325.00002400000005" color="243,118,29" hidden="true"/><watcher scope="Stage" s="reportMouseX" style="normal" x="8.556149732621634" y="8.556149732620298" color="4,148,220" hidden="true"/><watcher scope="Stage" s="reportMouseY" style="normal" x="8.556149732621634" y="26.524065882352943" color="4,148,220" hidden="true"/><watcher var="computerlist" style="normal" x="244.99465240641712" y="107.31550602139038" color="243,118,29" extX="94" extY="113" hidden="true"/><watcher var="lc" style="normal" x="8.556149732621634" y="44.49198203208559" color="243,118,29" hidden="true"/><watcher var="lcOutput" style="normal" x="8.556149732621634" y="62.459898181818176" color="243,118,29" hidden="true"/><watcher var="tickOver" style="normal" x="26.81564245810023" y="26.81564245810057" color="243,118,29" hidden="true"/><watcher var="letter" style="normal" x="26.81564245810023" y="83.12849698324024" color="243,118,29" hidden="true"/><watcher var="isSet" style="normal" x="26.81564245810023" y="139.44135150837985" color="243,118,29" hidden="true"/><watcher var="usercodelist" style="normal" x="381.94594594594673" y="0.0023104729006888647" color="243,118,29" extX="80" extY="70"/><watcher var="alphabet" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="z" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher var="Lettering" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher var="incorrect" style="normal" x="11.061224489796132" y="9.326528612244914" color="243,118,29"/><watcher var="correct" style="normal" x="18.102040816325825" y="57.367364938775665" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="initialize color boxes" type="command" category="looks"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><l>4</l><script><custom-block s="tell %s to %cs"><block s="reportJoinWords"><list><l>ColorBox</l><block var="i"/></list></block><script><block s="hide"></block><block s="gotoXY"><block s="reportDifference"><block s="reportProduct"><l>20</l><l></l></block><l>240</l></block><l>160</l></block><block s="setHeading"><l>180</l></block></script></custom-block></script></custom-block></script></block-definition><block-definition s="label %&apos;text&apos; of size %&apos;size&apos;" type="command" category="pen"><comment x="0" y="0" w="90" collapsed="false">LABEL will stamp text on the stage at the given font size. The direction of the text is the direction the sprite is facing, and color will match the pen color.</comment><header></header><code></code><translations></translations><inputs><input type="%txt">Hello!</input><input type="%n">12</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>text</l><l>size</l></list><l>var stage = this.parentThatIsA(StageMorph),&#xD;    context = stage.penTrails().getContext(&apos;2d&apos;),&#xD;    rotation = radians(this.direction() - 90),&#xD;    trans = new Point(&#xD;      this.center().x - stage.left(),&#xD;      this.center().y - stage.top()&#xD;    ),&#xD;    isWarped = this.Warped,&#xD;    len,&#xD;    pos;&#xD;&#xD;if (isWarped) {endWarp(); }&#xD;context.save();&#xD;context.font = size + &apos;px monospace&apos;;&#xD;context.textAlign = &apos;left&apos;;&#xD;context.textBaseline = &apos;alphabetic&apos;;&#xD;context.fillStyle = this.color.toString();&#xD;len = context.measureText(text).width;&#xD;trans = trans.multiplyBy(1 / stage.scale);&#xD;context.translate(trans.x, trans.y);&#xD;context.rotate(rotation);&#xD;context.fillText(text, 0, 0);&#xD;context.translate(-trans.x, -trans.y);&#xD;context.restore();&#xD;pos = new Point(&#xD;  len * Math.sin(radians(this.direction())),&#xD;  len * Math.cos(radians(this.direction())));&#xD;pos = pos.add(new Point(this.xPosition(), this.yPosition()));&#xD;this.gotoXY(pos.x, pos.y, false);&#xD;this.changed();&#xD;if (isWarped) {this.startWarp(); }&#xD;stage.changed();</l></block><list><block var="text"/><block var="size"/></list></block></script></block-definition><block-definition s="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="display color pattern %&apos;colors&apos;" type="command" category="looks"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><l>4</l><script><custom-block s="tell %s to %cs"><block s="reportJoinWords"><list><l>ColorBox</l><block var="i"/></list></block><script><block s="doSwitchToCostume"><l></l></block><block s="doStamp"></block><block s="forward"><l>20</l></block></script></custom-block></script></custom-block></script></block-definition><block-definition s="Mastermind" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Orange</l><l>1</l><comment w="90" collapsed="false">I started with setting each color to 0</comment></block><block s="doSetVar"><l>Red</l><l>2</l></block><block s="doSetVar"><l>Green</l><l>3</l></block><block s="doSetVar"><l>Y</l><l>4</l></block><block s="doSetVar"><l>colors</l><block s="reportRandom"><l>1</l><l>4</l></block></block></script></block-definition><block-definition s="Mastermind Ultimate" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>x</l><l>0</l><comment w="90" collapsed="false">This massive script is the heart of the game.</comment></block><block s="doSetVar"><l>y</l><l>0</l></block><block s="doSetVar"><l>incorrect</l><l>4</l><comment w="90" collapsed="false">I added incorrect to to six</comment></block><block s="doSetVar"><l>correct</l><l>0</l></block><block s="doSetVar"><l>usercodelist</l><block var="usercodelist"/></block><block s="doSetVar"><l>computerlist</l><block var="computerlist"/></block><block s="doSetVar"><l>index</l><l>1</l></block><block s="doSetVar"><l>x</l><block s="reportListItem"><block var="index"/><block var="usercodelist"/></block></block><block s="doSetVar"><l>y</l><block s="reportListItem"><block var="index"/><block var="computerlist"/></block></block><block s="doIfElse"><block s="reportEquals"><block var="x"/><block var="y"/></block><script><block s="doUntil"><block s="reportGreaterThan"><block var="index"/><l>4</l></block><script><block s="doIf"><block s="reportEquals"><block s="reportListItem"><block var="index"/><block var="usercodelist"/></block><block s="reportListItem"><block var="index"/><block var="computerlist"/></block></block><script><block s="doChangeVar"><l>correct</l><l>1</l></block><block s="doChangeVar"><l>incorrect</l><l>-1</l></block></script></block><block s="doChangeVar"><l>index</l><l>1</l></block></script></block><block s="doIf"><block s="reportEquals"><block var="correct"/><l>4</l></block><script><block s="doSayFor"><l>You Cracked the Code!</l><l>2</l></block><block s="doSayFor"><custom-block s="join words %mult%txt"><list><l>The code was </l><block var="computerlist"/></list></custom-block><l>2</l></block><block s="doStopThis"><l><option>all</option></l></block></script></block></script><script><block s="doSayFor"><l>Code did not match try again.</l><l>4</l></block></script><comment w="90" collapsed="false">The brains of the computer. This script runs and checks the input given by the player against the computer&apos;s &quot;code&quot;. Then it moves the incorrect and correct variables up or down depending on the list. If it is all correct, the computer then says that it is a match, if it is not, you will know what you have got wrong.  </comment></block></script></block-definition><block-definition s="Starting Script" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><block s="doDeleteFromList"><l><option>all</option></l><block var="computerlist"/></block><block s="doRepeat"><l>4</l><script><block s="doAddToList"><block s="reportListItem"><l><option>any</option></l><block s="reportNewList"><list><l>r</l><l>g</l><l>y</l><l>o</l><l>b</l><l>v</l></list></block></block><block var="computerlist"/></block></script></block><block s="doDeleteFromList"><l><option>all</option></l><block var="usercodelist"/></block><block s="doSetVar"><l>usercodelist</l><block s="reportNewList"><list></list></block></block><block s="doBroadcast"><l>setup</l></block><block s="doHideVar"><l>computerlist</l></block><block s="doSayFor"><l>Hello! Welcome to Mastermind! The game where you crack the code!</l><l>6</l></block><block s="doSayFor"><l>The computer has made a code, and you will decipher it</l><l>6</l></block><block s="doSayFor"><l>Your correct and incorrect indicators at at the top left</l><l>6</l></block><block s="doSayFor"><l>What you typed is on the top right</l><l>6</l></block><block s="doSayFor"><l>To kill the game you can press the space bar.</l><l>4</l></block><block s="doSayFor"><l>To cheat you can press the up arrow for the computer code.</l><l>4</l></block><block s="doSayFor"><l>Good Luck!</l><l>4</l></block></script></block-definition><block-definition s="Convert to lowercase" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>lc</l><l>rybgvo</l></block><block s="doSetVar"><l>lcOutput</l><l></l></block><block s="doSetVar"><l>tickOver</l><l>0</l></block><block s="doRepeat"><block s="reportStringSize"><block s="getLastAnswer"></block></block><script><block s="doChangeVar"><l>tickOver</l><l>1</l></block><block s="doSetVar"><l>letter</l><l>1</l></block><block s="doSetVar"><l>isSet</l><l>0</l></block><block s="doRepeat"><block s="reportStringSize"><block var="lc"/></block><script><block s="doIfElse"><block s="reportEquals"><block s="reportLetter"><block var="letter"/><block var="lc"/></block><block s="reportLetter"><block var="tickOver"/><block s="getLastAnswer"></block></block></block><script><block s="doSetVar"><l>lcOutput</l><block s="reportJoinWords"><list><block var="lcOutput"/><block s="reportLetter"><block var="letter"/><block var="lc"/></block></list></block></block><block s="doSetVar"><l>isSet</l><l>1</l></block><block s="doChangeVar"><l>letter</l><l>1</l></block></script><script><block s="doChangeVar"><l>letter</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block var="isSet"/><l>0</l></block><script><block s="doSetVar"><l>lcOutput</l><block s="reportJoinWords"><list><block var="letter"/><block s="reportLetter"><block var="tickOver"/><block s="getLastAnswer"></block></block></list></block></block></script></block></script></block></script></block></script></block></script></block-definition><block-definition s="error" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doUntil"><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block><script><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block><script><custom-block s="convert to lowercase %s"><block s="reportLetter"><l>1</l><block s="getLastAnswer"></block></block></custom-block><block s="doAsk"><l>r= Red, y=Yellow, b=Blue, g=Green, v=Violet, o=Orange. Please type in lowercase</l></block><block s="doIf"><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>r</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>y</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>b</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>g</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>v</l></block><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block></block></block></block></block></block><script><block s="doAddToList"><block var="Lettering"/><block var="usercodelist"/></block></script></block></script><script><block s="doSayFor"><l>ERROR: User did not type input properly. Exiting game code 45</l><l>10</l></block><block s="doStopThis"><l><option>all</option></l></block></script></block></script></block></script></block-definition><block-definition s="convert to lowercase %&apos;string&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doSetVar"><l>alphabet</l><l>abcdefghijklmnopqrstuvwxyz</l></block><block s="doSetVar"><l>z</l><l>0</l></block><block s="doRepeat"><block s="reportStringSize"><block var="alphabet"/></block><script><block s="doChangeVar"><l>z</l><l>1</l></block><block s="doIf"><block s="reportEquals"><block s="reportLetter"><block var="z"/><block var="alphabet"/></block><block var="string"/></block><script><block s="doSetVar"><l>Lettering</l><block s="reportLetter"><block var="z"/><block var="alphabet"/></block></block></script></block></script></block></script></block-definition><block-definition s="User Interaaction" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doFor"><l>i</l><l>1</l><l>10</l><script><block s="doFor"><l>i</l><l>1</l><l>4</l><script><block s="doAsk"><l>r= Red, y=Yellow, b=Blue, g=Green, v=Violet, o=Orange. Please type in lowercase</l></block><block s="doIfElse"><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>r</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>y</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>b</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>g</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>v</l></block><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block></block></block></block></block></block><script><custom-block s="convert to lowercase %s"><block s="reportLetter"><l>1</l><block s="getLastAnswer"></block><comment w="90" collapsed="false">used for converting the input inot lowercase.</comment></block></custom-block><block s="doAddToList"><block var="Lettering"/><block var="usercodelist"/></block><block s="doSayFor"><l>Next color?</l><l>2</l></block></script><script><block s="doUntil"><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>r</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>y</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>b</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>g</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>v</l></block><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block></block></block></block></block></block><script><block s="doSayFor"><l>Something went wrong. Please type the lettering in lowercase</l><l>2</l></block><block s="doAsk"><l>Type "o" for okay</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block><script><block s="doAsk"><l>r= Red, y=Yellow, b=Blue, g=Green, v=Violet, o=Oraneg. Please type in lowercase</l></block><block s="doIf"><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>r</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>y</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>b</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>g</l></block><block s="reportOr"><block s="reportEquals"><block s="getLastAnswer"></block><l>v</l></block><block s="reportEquals"><block s="getLastAnswer"></block><l>o</l></block></block></block></block></block></block><script><custom-block s="convert to lowercase %s"><block s="reportLetter"><l>1</l><block s="getLastAnswer"></block></block></custom-block><block s="doAddToList"><block var="Lettering"/><block var="usercodelist"/></block></script></block></script><script><block s="doAsk"><l>Please type "o"</l><comment w="90" collapsed="false">if the user inputs the wrong input ore than 3 times, the game exits. I purpoposely did this to stop a bug that i could&apos;nt figure out.</comment></block><custom-block s="error"></custom-block></script></block></script></block></script><comment w="90" collapsed="false">This whole script is what the user interfaces with. This allows the user to be restrectied to only the initals.</comment></block></script></block><block s="doBroadcast"><l>Answer</l></block><custom-block s="Mastermind Ultimate"><comment w="90" collapsed="false">The heart of the game.</comment></custom-block><block s="doDeleteFromList"><l><option>all</option></l><block var="usercodelist"/></block></script></block><block s="doSayFor"><l>Sorry you could not break the code.</l><l>2</l></block><block s="doSayFor"><block s="reportJoinWords"><list><l>The answer was</l><block var="computerlist"/></list></block><l>2</l></block></script></block-definition><block-definition s="setup" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="block2" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="block1" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="block 3" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSwitchToCostume"><block s="reportLetter"><l>1</l><block s="reportListItem"><l>3</l><block var="usercodelist"/></block></block></block><block s="doStamp"></block><block s="forward"><l>20</l></block></script></block-definition><block-definition s="block4" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs></block-definition></blocks><variables><variable name="computerlist"><list struct="atomic" id="1367">y,v,g,v</list></variable><variable name="usercodelist"><list struct="atomic" id="1368"></list></variable><variable name="correct"><l>4</l></variable><variable name="index"><l>5</l></variable><variable name="x"><l>o</l></variable><variable name="y"><l>o</l></variable><variable name="incorrect"><l>0</l></variable><variable name="lc"><l>rybgvo</l></variable><variable name="lcOutput"><l>7t</l></variable><variable name="tickOver"><l>6</l></variable><variable name="letter"><l>7</l></variable><variable name="isSet"><l>0</l></variable><variable name="alphabet"><l>abcdefghijklmnopqrstuvwxyz</l></variable><variable name="z"><l>26</l></variable><variable name="Lettering"><l>y</l></variable></variables></project><media name="mastermind" app="Snap! 5.4, http://snap.berkeley.edu" version="1"></media></snapdata>