<snapdata remixID="8650786"><project name="L09 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,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><watcher var="X&apos;s turn?" style="normal" x="4.999999999999773" y="4.999999999999993" color="243,118,29" hidden="true"/><watcher scope="Square" var="id" style="normal" x="20" y="20.000000000000014" color="243,118,29" hidden="true"/><watcher scope="Square" var="Square Number" style="normal" x="319" y="61.000001999999995" color="243,118,29" hidden="true"/><watcher var="Board" style="normal" x="11" y="2" color="243,118,29" extX="80" extY="70"/><sprite name="Square" idx="1" x="-50" y="-100" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="false" costume="1" color="80,80,80,1" pen="tip" id="12"><costumes><list id="13"><item><costume name="Empty" center-x="29" center-y="28" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAx0lEQVRoge3auw3DMBAE0e3snF0bLuU6cQkqQQ0wZ8gSWIKcyIk/kQ0IGu8Am/OBDClJJWmRNKBbtCNXSRt06zNyZOaoqu3My8zHLb4iM3P03sd28nrvY4e+Iqvq6PP9rKp6/1yNPFlGUjKSkpGUjKRkJCUjKRlJyUhKRlIykpKRlIykZCQlIykZSclISkZSMpKSkZSMpGQkJSMp/TcyImZrbR59wG9rrc2ImG+RkmZEzKO/V3+7HfgRSdwqSdcdeoOuJOlC3x3hcHoT7WE99QAAAABJRU5ErkJggg==" id="14"/></item><item><costume name="X" center-x="29" center-y="29" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA6CAYAAAAKjPErAAACx0lEQVRogd3bO66bQBQG4COxACjd+VaubMEOnCWwAyhSeAl0UKZzRc0SnB1QuEzBElDqFFPcylKkP8X1RHju8JoXF37pSLYx0vkGa5DHY6JtJhBfKIjoRkTtRuo3ET2I6P35+MaRNRFho1WLyIfneY8sy1AUxaoqyzLsdrtJSBARoigCYwxrShzHL7jD4fBnELk2aJqmL71XVYWiKORXUhyNNUBFYJ7nANCPLIoCVVWtBioCkyT5f2wQCWAV0CEgMAEJyKFN0zimyDMGBCYigc/QIAgWh04BAjOQAFDXNXzf/xJQcdD7gMBMJAA0TbM4dA4QUEACy0JF4Pl8Hj1HCQksAxWBYRhOmumVkYBbqCoQ0EQCbqA6QMAAErAL1QUChpCAHWjTNAiCQAsIGETypkxBTQEBw0jenC5UBPq+j7ZtlfoBLCB5k6pQGVD3Y28FyZsVobfbbfQc00DAIpI33YXS85t633ttAAHLSABo2xZhGA5C27a1BgQcIAGAMdYLZYwhiiJrQMAREpBDy7K0DgQcIgE5tFtjE5NqnCKBD+jxePwE7JuQTGQR5Ol02i5SnGRcQZ0iRWBZlqO3FxNxhpQt3wPDtxdTcYLsA/LYhlpHTl0btQm1ipwK5JFBTfRhDTkXyCODpmmq1YsVpCqQhzGGJEmMQY0j8zzXAnZjCmoUOXf5fkpMQI0hbQB5dKFGkCbWRseiA9VGugDyqEK1kC6BPCpQZeQSQJ65UCVkXdeLAXnmQJV+aTa1fK+bqdBZSBG43+8X3+4yBToZaXPxVzciNI7jl8GfhPzKQB4R2t1UNYpcA5Dner1KoYPINQF5ZLvHsiyTI7Msw9vb26qAPCK0s8H3Fel53t81AnlE6LPuHHkXD14ul8W3XKuUuGeXiBhHvktGYCv1i4goJaKf9PE3A355qw3U/VkFEdG3Z30noh+d55upf5QhtmqfNL88AAAAAElFTkSuQmCC" id="15"/></item><item><costume name="O" center-x="28" center-y="28" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAADhUlEQVRoge2a3bGrIBSF6UA60A5MB6QD04F2oB1AB6YD7YAStANLoARKWPchNw6oUVSMmeSsGfMQf9gfbBYCEkKIIIQ0X3wI8v8HX3z8JqTAF2jIZEF+k06BVEqhbVu0bQul1KFlAW+AbNsWRVHgcrks9pnL5YKiKNC2rbfygYMglVLIsgyU0s0mQSlFlmVeWtorpNYaQohFgDAMwRgDYwxhGC5eL4SA1vp8yKqqJlsuDEPkeQ4p5eIzpJTI83wSnFKKqqo2IHqCLIpiFBRjDE3TbAoKAJqmAWNs9NyiKFY/axek1hq3223Uci6t5iop5ahlb7fbqvTdDKm1Hjlmmqa7+s5cWWmajpzYtazNkFmWWYVyzneiLItzbpWZZZnTfZsgh4VtNYQtqqpqdeWuhpRSWoXkee4RwU15nlsxLHnAasgoivqbkiTxHb+zkiTp44iiaPbaVZBlWfY3BEFwiMm4SmuNIAj6eMqyfHmtM6TW2hrs5x76LpmVTil9WenOkOYDwzA8OHx3mWPoq4p3hjTHxHe66ZJMt2WMTV7jBKm1ttzszL44lEtsTpAutXWm4jiezTInSPOV6hMMZyjTL9I0HZ13gjRnA3tmFkepaZrZTPuDfMocHz/JdJ4yzYdSOjrvBGm616dqLsY/yKdMi+667l1xO6vruj6+OI5H53/NeLgTpM/1G18y57ib3dVcCZgabM+W+bIytVLg1JJmzi9NUM+QOcRNeYZTSwKwJqifZD5mA7yaAjpDminxSSnrEpczpOlghJC3bLktSSllxfTK+Z0hAdtlr9frgeG76Xq9zrrqU6sghzV35nAyXH+dy6xVkIDdByilp5hQ13WWoy55xGpIrbX1mhdF0VtnJsNVwziOF8tfDQk8atIcUtZsvuyRUspaUAuCwCmTNkECY7c9OnWHKTrnpkNthgTGnZ9Sivv9vgNlWvf73SqHkHXLorsggXHqPtPXx2ylaZrRHqhripraDQk8+oppRuZYWtf1qhcHpRTqurbGQNNktryEeIEEHq7HOR+1qtm6QggIIVDXdf+xUl3X/f+vvvUJggCc883m5g3ShB1ufe85fGzRe4d8SimFsiytfUTXI0kSlGXp7f34MEhTWmtIKcE5B+ccaZr2Hyuladr/L6U8ZLx9C+TZMiD5L0D+REvakISQ5uzgfIg8PrB/CfmNx09AckIIuX778Q//cwRX84YLFwAAAABJRU5ErkJggg==" id="16"/></item></list></costumes><sounds><list struct="atomic" id="17"></list></sounds><blocks></blocks><variables><variable name="id"><l>0</l></variable><variable name="Square Number"><l>10</l></variable></variables><scripts><script x="20" y="10"><block s="receiveInteraction"><l><option>clicked</option></l></block><block s="doIf"><block s="reportNot"><custom-block s="Game Over"></custom-block></block><script><block s="doIfElse"><block s="reportEquals"><block s="getCostumeIdx"></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="Square Number"/><block var="Board"/><l>X</l></block></script><script><block s="doSwitchToCostume"><l>O</l></block><block s="doReplaceInList"><block var="Square Number"/><block var="Board"/><l>O</l></block></script></block><block s="doSetVar"><l>X&apos;s turn?</l><block s="reportNot"><block var="X&apos;s turn?"/></block></block><block s="doIfElse"><custom-block s="Any Player Has Won"></custom-block><script><custom-block s="Wining Statement"></custom-block></script><script><block s="doIf"><custom-block s="Board Full?"></custom-block><script><custom-block s="Tie?"></custom-block></script></block></script></block></script><script><block s="doSayFor"><l>You&apos;ve already clicked me!</l><l>2</l></block></script></block></script></block></script><script x="20" y="447"><block s="receiveKey"><l><option>space</option></l></block></script><script x="20" y="499"><block s="goToLayer"><l><option>front</option></l></block><block s="doSayFor"><block var="Square Number"/><l>300</l></block></script><script x="20" y="561"><block s="receiveKey"><l><option>space</option></l></block></script><script x="20" y="613"><block s="bubble"><block s="reportListItem"><block var="Square Number"/><block var="Board"/></block></block></script><script x="20" y="657"><block s="receiveGo"></block><block s="doWait"><l>.5</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></block></block></script><script x="20" y="888"><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><script x="20" y="930"><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>7</l><l>5</l><l>3</l></list></block><block s="reportNewList"><list><l>1</l><l>5</l><l>9</l></list></block></list></block></script><script x="19" y="796"><block s="receiveGo"></block><block s="gotoXY"><l>-50</l><l>50</l></block><block s="removeClone"></block></script></scripts></sprite></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.7777807777777"><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="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSetVar"><l>Board</l><block s="reportNewList"><list><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l><l>Empty</l></list></block></block><block s="doSetVar"><l>Square Number</l><l>1</l></block><block s="setEffect"><l><option>ghost</option></l><l>0</l></block><custom-block s="for %upvar = %n to %n %cs"><l>Row</l><l>1</l><l>3</l><script><custom-block s="for %upvar = %n to %n %cs"><l>Column</l><l>1</l><l>3</l><script><block s="doSwitchToCostume"><l>Empty</l></block><block s="createClone"><l>Square</l></block><block s="doChangeVar"><l>Square Number</l><l>1</l></block><block s="changeXPosition"><l>50</l></block></script></custom-block><block s="changeYPosition"><l>-50</l></block><block s="changeXPosition"><l>-150</l></block></script></custom-block><block s="setEffect"><l><option>ghost</option></l><l>100</l></block></script></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>7</l><l>5</l><l>3</l></list></block><block s="reportNewList"><list><l>1</l><l>5</l><l>9</l></list></block></list></block></block></script></block-definition><block-definition s="Status of Triple %&apos;Tri&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="Tri"/></block></block></script></block-definition><block-definition s="Won? %&apos;hi&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doDeclareVariables"><list><l>a</l></list></block><block s="doSetVar"><l>a</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></block><block s="doIfElse"><block s="reportListContainsItem"><block var="a"/><block s="reportNewList"><list><block var="hi"/><block var="hi"/><block var="hi"/></list></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="Win Statement" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><block s="doForever"><script><block s="doIf"><custom-block s="Won? %s"><l>x</l></custom-block><script><block s="clear"></block><block s="gotoXY"><l>-90</l><l>-150</l></block><block s="down"></block><block s="write"><l>X Won!!!</l><l>50</l></block><block s="up"></block></script></block><block s="doIf"><custom-block s="Won? %s"><l>o</l></custom-block><script><block s="clear"></block><block s="gotoXY"><l>-90</l><l>-150</l></block><block s="down"></block><block s="write"><l>O Won!!!</l><l>50</l></block><block s="up"></block></script></block><block s="clear"></block></script></block></script></block-definition><block-definition s="Any Player Has Won" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIfElse"><block s="reportOr"><custom-block s="Won? %s"><l>X</l></custom-block><custom-block s="Won? %s"><l>O</l></custom-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="Tie" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="clear"></block><block s="gotoXY"><l>-90</l><l>-150</l></block><block s="down"></block><block s="write"><l>It&apos;s A Tie</l><l>50</l></block><block s="up"></block><block s="doStopThis"><l><option>this script</option></l></block></script></block-definition><block-definition s="Board Full?" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportNot"><block s="reportListContainsItem"><block var="Board"/><l>Empty</l></block></block></block></script></block-definition><block-definition s="Game Over" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportOr"><custom-block s="Board Full?"></custom-block><custom-block s="Any Player Has Won"></custom-block></block></block></script></block-definition><block-definition s="Wining Statement" type="command" category="looks"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIf"><custom-block s="Won? %s"><l>x</l></custom-block><script><block s="bubble"><l>X Won!</l></block></script></block><block s="doIf"><custom-block s="Won? %s"><l>o</l></custom-block><script><block s="bubble"><l>O Won!</l></block></script></block></script></block-definition><block-definition s="Tie?" type="command" category="looks"><header></header><code></code><translations></translations><inputs></inputs><script><block s="bubble"><l>It&apos;s A Tie</l></block></script></block-definition></blocks><variables><variable name="X&apos;s turn?"><bool>true</bool></variable><variable name="Board"><list struct="atomic" id="1043">Empty,Empty,Empty,Empty,Empty,Empty,Empty,Empty,Empty</list></variable></variables></project><media name="L09 Tic-Tac-Toe" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>