<snapdata remixID="8719726"><project name="U3L2-Tic-Tac-Toe" 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,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAK1SURBVHhe7cExAQAAAMKg9U9tDB8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgIsajf4AAXBXLv8AAAAASUVORK5CYII=</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><watcher var="X&apos;s turn?" style="normal" x="5" y="5" color="243,118,29" hidden="true"/><watcher scope="Square" var="position number" style="normal" x="207" y="23.000001999999995" color="243,118,29" hidden="true"/><sprite name="Square" idx="1" x="-50" y="-100" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" hidden="true" costume="1" color="80,80,80,1" pen="tip" id="10"><costumes><list id="11"><item><costume name="Empty" center-x="26" center-y="26" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAB/SURBVGhD7drBCYAwEAXRIF5zjGftxFoUazWIPcVoFeMyDz7sde6bIlr7WoTN83IP/UjbfqTW2q931ivlnMcvKBKD6AyiM4jOIDqD6AyiM4jOIDqD6AyiM4jOIDqD6AyiM4jOIDqD6AyiM4jOIDqD6AyiM4guXNArzEdjKVN9APXP+dI+ghk4AAAAAElFTkSuQmCC" id="12"/></item><item><costume name="X" center-x="26" center-y="26" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAIXSURBVGhD7drLLkNRFMbxzQgDfYAiHkKkRjqnQgxIqNsTMDMhLlM8AF5BJCYeQWNA3TvUWzBS007K15yduKT77Mta59L4J01W9+j80nZNujuEEIOZzOR6T09319cc6+r1+j1A6aGh4fPF5ZVYg95eX8T11VURc3pmZva9EfMucpeNsbHMc2eT10b9g6KeElQqV7wpOvk9kxK0vb0jNja3vHfh9/D4JNKjo+Lk9Mw7+ZsSdLC/JwqFQiRQwGTGx8XcfFZMT014p39TghKJXnF8dBg66jtmd0f9HL5LIWyUCQb5glBYKFMM0gKhoFE2GKQNQkGhbDHICIS4US4YZAxCXChXDLICIWoUBQZZgxAVigqDnEDIFUWJQc4gZIuixiASEDJFcWAQGQjporgwiBSE/FCcGEQOQq1Q3BjEAkK/UUFgEBsISVQ+nxcjqRQ7BrGCUKVaFXe3NyKZTHonvLGC5Ncsu7Aocrmc9kp3iQ30+zeju9JdYwG1WgBBoMhBftuMG0UK0l3NnCgykC5GxoUiAZliZBwoZ5AtRkaNcgK5YmSUKGsQFUZGhbICUWNkFChjEBdG5ooyAnFjZC4obVBQGJktSgsUNEZmg/IFhYWRmaKUoLAxMhOUErS2uhY6RvYdpfrTGLW8GlMslb0pOtVqH970M62rMQP9fd4UnfBJqdLacnHqHxT12u4CYPOK5tdrqXka+8TzJ98fYTGEtmvfAAAAAElFTkSuQmCC" id="13"/></item><item><costume name="O" center-x="26" center-y="26" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAASfSURBVGhD7ZpdTFNnGMcfFi9XvNKEsC2WUaguGstH5MaBjGoiqHPzA3TeKO1QY1SqZhcyWl2iboAz24zCFrfxPdyQDy8cE4ZeWAXRXcyvGo0w5Vao98fzf3270LVve87poT0wf8lJ+r6lH7/3POfpe54Hmo0UyIc0G44FC8zDb8gPaPsOB0mSNKOPa94bZDKZ5jCh2cRrIaOju9Dvf/TT8S9raUe5k9LS3qWkpKSQY+OmUtq330U//txMo2P/8Ffqgy5C+FJVn7uZQEN9PZvbXFpKfw4Ohr2AXS4XLbVl0e1bI1SQn88Ef+3sZq/TgwI5y8mfo54no2PS4apqyWxOk46dqGFjLZz/rUvasHGzZLevYo+1IGc5afHiJbc1C537qelfkefPJ/hsbFzqu8yk8H3ULk5ASHXITUxMsvhvaWqkltY2+uyQi+bOTebPxsbKokLq6PiFLBmZLBRxPapFlRBkyh1O8vv97IPzluXyZ/QDi4NF+qr2JFU4HaqvLcVCARmr1Uo/fF+v21kR8fH6tdTT20sHXftVSSkWqnQdoNTUVDp6xM1npp/3Fi1kUhs+Wkfe60N8NjKKhL49fZYmJyfJ467mM/EDUnLmoy1lpSxKohFV6O87d2nP7gpyyzLTHWYiEH5r131I1W4PnxETVaiu7iR9890ZtlKJBNHR3XUhauhFFMKLB/ov07atZXwmcSA6Kg8cooaGBj4TnohCbW1t7E0SFWr/BQuLBcZlIEIohP3Zqa/rDHF2AmBhnRW75IVu5zOhCIX6BwZp775Kw5ydAGtKVtN1r5ePQhEKYSe8/P18PjIOSE4PH/qEYScUQkaxZlr4yFgghd+77+OjYIRCjx8/SniqFpFuyaDx8XE+CiasENK1fH/CR8YjI8NCt0Zu8lEwwjOUnGysZDCVZJOJPwpFKDRT+X8ImUxv0tjoKB8Zj6fPxlEl5aNgwgohu/X1XeIj44EMh0wXDmHI2e2rFN9UxRtkuJSUFD4KRii0LC9P/vF6wEfGAhvU3JwsPgpGKIRC4MXeHj4yDqgEpadb6J233+IzwQiFigoL6HxHu+6l2li5euUKFRbZ+SgUoRB22YerqqmlVbxVjzeoKXxx1ENbysS7GKEQcDjKqf7MaUXFiXjQ2NzKFlkUbiCiEF649ZNtVFNbx2cSB0IfxRosciQiCgG8QXNTY8JTuMdzhI6dqIl4dkBUIbwByrJK62LTAfpNqAvu/NTBZ8REFQKoiyH0UAqOtxTKwLiO3QrrgoqEAErAqGvHUwoyqG2jHKz0ZlOxEJgqFamUpAcoP6uVAaqEAKSyc3JpTUkJ65HqDbIZ+rPdFzpVywDVQgD9GzS70PTCh+uRARHGOCtodKHhhf6TlpqGJiGAZhc+1JaVzTIgxLQ0fnFGkMVsNhvbRcfaFUySD/RYB9DE0gpWt7Orh21mbw4PsTIT7ldysl/tiBdaM9kXxHXn979gN2g+n4/9LQ5k0OLi4pg6gogSp6P8L12EpoIVHxoeYV/Y9+A++/3AJheYzWm0ovADdrcZENarrRkQwmPNbX0jobkLbnReC80EZs1/NM6bN9/7EuGX3xFM1xakAAAAAElFTkSuQmCC" id="14"/></item></list></costumes><sounds><list struct="atomic" id="15"></list></sounds><blocks></blocks><variables><variable name="position number"><l>9</l></variable></variables><scripts><script x="393.26666666666665" y="66"><block s="receiveInteraction"><l><option>clicked</option></l></block><block s="doIf"><block s="reportEquals"><block s="reportAttributeOf"><l><option>costume #</option></l><block s="reportObject"><l><option>myself</option></l></block></block><l>1</l></block><script><block s="doIfElse"><block var="X&apos;s turn?"/><script><block s="doSwitchToCostume"><l>X</l></block><block s="doReplaceInList"><block var="position number"/><block var="board"/><l>X</l></block><block s="doSetVar"><l>X&apos;s turn?</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script><script><block s="doSwitchToCostume"><l>O</l></block><block s="doReplaceInList"><block var="position number"/><block var="board"/><l>O</l></block><block s="doSetVar"><l>X&apos;s turn?</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></block><custom-block s="Win, Lose, or Tie!"></custom-block></script><script x="32.26666666666668" y="35.200000000000045"><block s="receiveGo"></block><block s="removeClone"><comment w="118" collapsed="false">This affects only clones, not the original sprite.</comment></block></script><script x="30" y="154.66666666666668"><block s="receiveGo"><comment w="156.66666666666666" collapsed="false">Connect this to the script below it in For You To Do 4.</comment></block><block s="doWait"><l>.1</l><comment w="181.33333333333334" collapsed="true">Wait for old clones to be deleted.</comment></block><block s="doSwitchToCostume"><l>Empty</l></block><block s="gotoXY"><l>-50</l><l>50</l></block><custom-block s="makeBoard"></custom-block><block s="doSetVar"><l>X&apos;s turn?</l><block s="reportBoolean"><l><bool>true</bool></l><comment w="90" collapsed="true">X plays first.</comment></block></block><block s="doSetVar"><l>board</l><block s="reportNewList"><list><l>E</l><l>E</l><l>E</l><l>E</l><l>E</l><l>E</l><l>E</l><l>E</l><l>E</l></list></block></block></script></scripts></sprite><watcher var="board" style="normal" x="14" y="39" color="243,118,29" extX="80" extY="70"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="label %&apos;text&apos; of size %&apos;size&apos;" type="command" category="pen"><comment x="0" y="0" w="90" collapsed="false">LABEL will stamp text on the stage at the given font size. The direction of the text is the direction the sprite is facing, and color will match the pen color.</comment><header></header><code></code><translations></translations><inputs><input type="%txt">Hello!</input><input type="%n">12</input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>text</l><l>size</l></list><l>var stage = this.parentThatIsA(StageMorph),&#xD;    context = stage.penTrails().getContext(&apos;2d&apos;),&#xD;    rotation = radians(this.direction() - 90),&#xD;    trans = new Point(&#xD;      this.center().x - stage.left(),&#xD;      this.center().y - stage.top()&#xD;    ),&#xD;    isWarped = this.Warped,&#xD;    len,&#xD;    pos;&#xD;&#xD;if (isWarped) {endWarp(); }&#xD;context.save();&#xD;context.font = size + &apos;px monospace&apos;;&#xD;context.textAlign = &apos;left&apos;;&#xD;context.textBaseline = &apos;alphabetic&apos;;&#xD;context.fillStyle = this.color.toString();&#xD;len = context.measureText(text).width;&#xD;trans = trans.multiplyBy(1 / stage.scale);&#xD;context.translate(trans.x, trans.y);&#xD;context.rotate(rotation);&#xD;context.fillText(text, 0, 0);&#xD;context.translate(-trans.x, -trans.y);&#xD;context.restore();&#xD;pos = new Point(&#xD;  len * Math.sin(radians(this.direction())),&#xD;  len * Math.cos(radians(this.direction())));&#xD;pos = pos.add(new Point(this.xPosition(), this.yPosition()));&#xD;this.gotoXY(pos.x, pos.y, false);&#xD;this.changed();&#xD;if (isWarped) {this.startWarp(); }&#xD;stage.changed();</l></block><list><block var="text"/><block var="size"/></list></block></script></block-definition><block-definition s="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="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>1</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></block></script></block><block s="doIf"><block s="reportEquals"><l></l><block s="reportListItem"><l>2</l><block var="words"/></block></block><script><block s="doReport"><custom-block s="join words %mult%txt"><block s="reportCONS"><block s="reportListItem"><l>1</l><block var="words"/></block><block s="reportCDR"><block s="reportCDR"><block var="words"/></block></block></block></custom-block></block></script></block><block s="doReport"><block s="reportJoinWords"><list><block s="reportListItem"><l>1</l><block var="words"/></block><l> </l><custom-block s="join words %mult%txt"><block s="reportCDR"><block var="words"/></block></custom-block></list></block></block></script></block></script><scripts><script x="229.00000300000002" y="196.77778077777773"><block s="reportJoinWords"><list><l></l><l></l></list></block></script></scripts></block-definition><block-definition s="list $arrowRight sentence %&apos;data&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doWarp"><script><block s="doReport"><custom-block s="join words %mult%txt"><block var="data"/></custom-block></block></script></block></script></block-definition><block-definition s="sentence $arrowRight list %&apos;text&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="text"/><l><option>whitespace</option></l></block></block></script></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;action&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%cs"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doRun"><block var="action"/><list></list></block></script><list><l>cont</l></list></block></block><custom-block s="ignore %s"><l>3</l></custom-block></script></block-definition><block-definition s="throw %&apos;cont&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input></inputs><script><block s="doRun"><block var="cont"/><list></list></block></script></block-definition><block-definition s="catch %&apos;tag&apos; %&apos;value&apos;" type="reporter" category="control"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%anyUE"></input></inputs><script><block s="doCallCC"><block s="reifyScript"><script><block s="doSetVar"><l>tag</l><block var="cont"/></block><block s="doReport"><block s="evaluate"><block var="value"/><list></list></block></block></script><list><l>cont</l></list></block></block></script></block-definition><block-definition s="throw %&apos;tag&apos; %&apos;value&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s">catchtag</input><input type="%s"></input></inputs><script><block s="doRun"><block var="tag"/><list><block var="value"/></list></block></script></block-definition><block-definition s="for each %&apos;item&apos; of %&apos;data&apos; %&apos;action&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%upvar"></input><input type="%l"></input><input type="%cs"></input></inputs><script><block s="doUntil"><custom-block s="empty? %l"><block var="data"/></custom-block><script><block s="doSetVar"><l>item</l><block s="reportListItem"><l>1</l><block var="data"/></block></block><block s="doRun"><block var="action"/><list><block s="reportListItem"><l>1</l><block var="data"/></block></list></block><block s="doSetVar"><l>data</l><block s="reportCDR"><block var="data"/></block></block></script></block></script></block-definition><block-definition s="if %&apos;test&apos; do %&apos;action&apos; and pause all $pause-1-255-220-0" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%boolUE"></input><input type="%cs"></input></inputs><script><block s="doDeclareVariables"><list><l>breakpoint</l></list></block><block s="doIf"><block s="evaluate"><block var="test"/><list></list></block><script><block s="doSetVar"><l>breakpoint</l><block var="test"/></block><block s="doShowVar"><l>breakpoint</l></block><block s="doRun"><block var="action"/><list></list></block><block s="doPauseAll"></block><block s="doHideVar"><l></l></block></script></block></script></block-definition><block-definition s="word $arrowRight list %&apos;word&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%txt"></input></inputs><script><block s="doWarp"><script><block s="doReport"><block s="reportTextSplit"><block var="word"/><l><option>letter</option></l></block></block></script></block></script></block-definition><block-definition s="ignore %&apos;x&apos;" type="command" category="control"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs></block-definition><block-definition s="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="makeBoard" type="command" category="control"><header></header><code></code><translations></translations><inputs></inputs><script><block s="show"></block><block s="doSetVar"><l>position number</l><l>0</l></block><block s="up"></block><block s="doRepeat"><l>3</l><script><block s="doRepeat"><l>3</l><script><block s="doChangeVar"><l>position number</l><l>1</l></block><block s="createClone"><l><option>myself</option></l></block><block s="changeXPosition"><l>50</l></block></script></block><block s="changeXPosition"><l>-150</l></block><block s="changeYPosition"><l>-50</l></block></script></block><block s="hide"></block></script></block-definition><block-definition s="Draw Square" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doRepeat"><l>4</l><script><block s="forward"><l>50</l></block><block s="turn"><l>90</l></block></script></block></script></block-definition><block-definition s="Tic Tac Toe Wins" type="command" category="lists"><header></header><code></code><translations></translations><inputs></inputs></block-definition><block-definition s="TicTacToe Wins" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportNewList"><list><block s="reportNewList"><list><l>1</l><l>2</l><l>3</l></list></block><block s="reportNewList"><list><l>4</l><l>5</l><l>6</l></list></block><block s="reportNewList"><list><l>7</l><l>8</l><l>9</l></list></block><block s="reportNewList"><list><l>1</l><l>4</l><l>7</l></list></block><block s="reportNewList"><list><l>2</l><l>5</l><l>8</l></list></block><block s="reportNewList"><list><l>3</l><l>6</l><l>9</l></list></block><block s="reportNewList"><list><l>1</l><l>5</l><l>9</l></list></block><block s="reportNewList"><list><l>3</l><l>5</l><l>7</l></list></block></list></block></block></script></block-definition><block-definition s="Status of Triple %&apos;list&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doReport"><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportListItem"><l></l><block var="board"/></block></autolambda><list></list></block><block var="list"/></block></block></script></block-definition><block-definition s="won? %&apos;winning player?&apos; (Input X or O)" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doForEach"><l>item</l><block s="reportMap"><block s="reifyReporter"><autolambda><custom-block s="Status of Triple %l"><l/></custom-block></autolambda><list></list></block><custom-block s="TicTacToe Wins"></custom-block></block><script><block s="doIfElse"><block s="reportAnd"><block s="reportListContainsItem"><block var="item"/><l>X</l></block><block s="reportListContainsItem"><block var="item"/><l>O</l></block></block><script></script><script><block s="doIfElse"><block s="reportListContainsItem"><l/><l>E</l></block><script></script><script><block s="doIf"><block s="reportListContainsItem"><block var="item"/><block var="winning player?"/></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script></block></script></block></script></block></script></block><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script><scripts><script x="405.0000030000001" y="143.8333363333333"><block s="doSayFor"><l>No winner possible</l><l>2</l></block><block s="doSayFor"><l>No winner yet</l><l>2</l></block><block s="doSayFor"><l>X is the winner!</l><l>2</l></block><block s="doSayFor"><l>O is the winner!</l><l>2</l></block></script><script x="559.0000030000001" y="309.6666696666667"><block s="doIfElse"><l/><script></script><script></script></block></script></scripts></block-definition><block-definition s="Win, Lose, or Tie!" type="command" category="control"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIf"><custom-block s="won? %s (Input X or O)"><l>O</l></custom-block><script><block s="bubble"><l>O is the winner!</l></block></script></block><block s="doIf"><custom-block s="won? %s (Input X or O)"><l>X</l></custom-block><script><block s="bubble"><l>X is the winner!</l></block></script></block><block s="doIfElse"><block s="reportListContainsItem"><block var="board"/><l>E</l></block><script></script><script><block s="bubble"><l>Tie!</l></block></script></block></script></block-definition></blocks><variables><variable name="X&apos;s turn?"><bool>true</bool></variable><variable name="board"><list struct="atomic" id="886">E,E,E,E,E,E,E,E,E</list></variable></variables></project><media name="U3L2-Tic-Tac-Toe" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>