<snapdata remixID="10363443"><project name="Unit 5 Lab 6" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAiVJREFUeAHt0sENACAQwzBg/50PxBL5uAtUirznbZkCUYET/bpV4BcAEIS0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nQPIQFoAwDS/cwAZSAsAmOZ3DiADaQEA0/zOAWQgLQBgmt85gAykBQBM8zsHkIG0AIBpfucAMpAWADDN7xxABtICAKb5nV93VwTsQBQlmgAAAABJRU5ErkJggg==</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" hyperops="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAX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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="Square" idx="1" x="50" y="-50" heading="90" scale="0.95" volume="100" pan="0" rotation="1" draggable="false" hidden="true" costume="1" color="80,80,80,1" pen="tip" id="8"><costumes><list id="9"><item><costume name="Empty" center-x="29" center-y="28" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAAAUtJREFUaAXtmrGNg1AQRNfWFXAlOCG2MxKCS+mI0C1QDQmSExICpMtJ/nXgDs67yEj8xJp0vuZLC8aeYN4+Qp/M7O5z9bn5lHh+v95U336/lEjoTGmH3PlS27ZW1zU18DzPaRiGYNo4MsgA7PveqqqKAO1Z13Xr/ga185EkDDrg5fgd4+dgOL6NGSQjENJZkMiWGDIyyWAJ6SiTyJYYMjLJYAnpKJPIlhgyMslgCekok8iWGDIyyWAJ6SiTyJYYMjLJYAnpKJPIlhgyMslgCekok8iWGDIyyWAJ6SiTyJYYMjLJYAnpKJPIlhgyMslgCekok8iWGDIyyWAJ6SiTyJYYMjLJYAnpKJPIlhgymclpmp7LsjwZin/qGAzBsmeyfy6P42hd11nTNPvvlHcHtGA5nrs/PHz+C51HmEw+cdJ2Le/yd3Kmn/K4cqIXTeBmMjuzp20AAAAASUVORK5CYII=" id="10"/></item><item><costume name="X" center-x="29" center-y="29" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA6CAYAAAAKjPErAAAAAXNSR0IArs4c6QAABGZJREFUaAXdmjFP20AUxy8VQgyRyNAhGxm6gZR8gEoEdeoGAzOwIWCAjQ3zCWCBFT4CY5fKSO1WqSCxVlVGpEolUheEKqXvb+W558uZ2Od3TpwnvZzvbL97v7t3Z985Ss2mNHSsGmUC0jZph3QW5A1BNElfSH+Tfp+jHwjIWziYIZknljrpT4Zktpd6va4ODg7mFxYWuKwS6fPzs7q+vlaPj49WfwMqD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zj9PivktAMyAEDPzs44G+1C2EBHIKsCyGSHh4fWv8nh/6+6BJSJXtCPj48HtMUfv3DTGBzc3d3xe/NUp+ZCodlsMgfY/q9C6F/LfykfnawSILe+CTpk+YId34D0A+l70lh2d3cVtUacr8oBhpvxTbQP3wPSP6TcvbOWfpsjuB7pZ9KPpPOkX0l/kFZd3g0BPiNcu8MMCqGfhvmZSf4BHu9ZntyXgZoAAAAASUVORK5CYII=" id="11"/></item><item><costume name="O" center-x="28" center-y="28" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAAXNSR0IArs4c6QAABNBJREFUaAXdWu1R4zAQVW74Dx1AB9AB7gA6gA6gg4gKoAOgAuiApAKgAqACoALfPp1X86KTbMmx87UzijaytPuetF7LSibGGCvlVMquynyvYVbtKkPhNf+zw+Q8tZDkTV3XZtuLsLvxDEVZICnkpnxxW/WQh96To/P5/Pw0X19fzs/h4aE5Ojoa3ac6GIXkfD43z8/PZjabmbe3N/UVrU9OTkxVVeb8/Nycno6X5K14r1GWkY+Pj/ry8rI+ODhwttRmSY2xsAFbywr5taK752Rvkt/f37W1tpOYhGgtK+UKdAIR1WETtvsK2bei9yd5f38fXTmQuLq6qp+enjoxog/6xohjZeGjjwxC8vr6+r8VwEq9vLz0weTGYCxsEECnw1epkA0retlKIoQkSSwAwSrkrFouUNgKVxY+S8K3N0k4kWy4QPDi4qLIeS5R+IJtAut85xKlcVb0/JVE5qPB9XQ6zcXcux98sE9gyBEaY0XPIxk665sQcgCGfeCLQGdNLvW3oneTxD1Cg1w2DIGM/R0ZmDF05QDqa0XvJilbMO/g7OxsbD5J+/Ct4IGpTbRfw6+d5O3trTe8v78/SpJpA8vXkHSAQQkAW0q0TydJGOVtWpvRlLOh23nSgS2VbbNJskE8tzZF+BmamngmufA+KRcW5PHx0X+XvaTX160wFrzt5IiVTi7OeaUQBtqOOhUWPGZVeg42wm6TK8kzJPtJI/Ev4zZDgOX4+NiDYay+kZQkSbzwquCFdtNEdj4eEmP1jaQkSeK4QgVv75smjImxxnAmScY6b2tbkuT7+7vnxLPmG9esMCbGGoOVJPnz8+P7b1LSUVCMibHqda6TJLnTtutJkpyiu44V1zEJjImxxrAkSZaEQ8zw2G0coow14rdOkuTObJDb16kXYJokSeJUW6VrR6H9VlkzJsYawYDtafx98vX11e9du15QV7VnZT8Soh4fsIYivPR6eu+K55C8oLqJwY6Cb3TXuMYPYNFwldcuw8/MGKxkuKIz71nv7u5i49fSxlg6QtXjs6K5pQ2XHCfaeg31ED/EhD5KvwMDY0qd2FMfK3r8nlTnfGwvs6bNa6uBQQkAW0q0T8OvnWQ4c11HgSmnQ7SH569tkVVEEuD4uB5ZLZbNhiDRZgM+OaMCU5sUk8Rxg2ydfJjgkbLK4xD4YoLA0uW/mCRmDDPJZ56Stjsdtc107jWEJHwpaGDIiSTtL7WV0n5PMpgw244dumGICtY6lU0ZJ3T0bYqVOp8kBoc3P4jKcwuXBhXYbED6Gr5zhcZa0ctIwkkYujCIkMqd5TagsMHhCdu5Icp2Ma4pVupykjCGe4WTUWOwxnPs4eHBXWenbTpsYQw/A9UefOB6qeh48JvgQ8pUCv7jgipbsH/EFgvl9/f3v3GyIn5rKBnZoECwF0aB4G0iti/Gvln+K+CK3BKub8nHZAJqTm7waaW4pS2dLe2PdM7PUrXXt4atrkeE+k7V5NuKvjxJdYSwwg8w/DsiOdN7JFpjDMb2CU31zzX5XS5cMUMpQSjz3844RDl0EdJyLw7+MwSHKwLXSpkCrMwEqp0QIpl+ad4Jpv9IpM94dojk4p96ZYlnu0Au5LEXkKooloNLW/W1YrStZzzccYv1Gtm12mICWdD/AtTbFh5ER3y1AAAAAElFTkSuQmCC" id="12"/></item></list></costumes><sounds><list struct="atomic" id="13"></list></sounds><blocks></blocks><variables><variable name="position number"><l>10</l></variable></variables><scripts><script x="10" y="10"><block s="receiveGo"></block><block s="clear"></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><block s="doSetVar"><l>board</l><block s="reportNumbers"><l>1</l><l>9</l></block></block><block s="doSetVar"><l>playing</l><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script x="10.333333333333314" y="312.33333333333303"><custom-block s="won? %s"><l>x</l></custom-block></script><script x="16.333333333333314" y="338.33333333333314"><custom-block s="tied?"></custom-block></script><script x="12.000000999999997" y="187.3333333333335"><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportListItem"><l></l><block var="board"/></block></autolambda><list></list></block><block s="reportNewList"><list><l>1</l><l>2</l><l>3</l></list></block></block></script><script x="346.66666666666663" y="648.1666666666665"><custom-block s="move in this square"></custom-block></script><script x="460.000001" y="372.83333333333337"><custom-block s="move in this square"></custom-block></script><script x="16.666666666666657" y="637.6666666666665"><block s="doIf"><block s="reportAnd"><block var="playing"/><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block></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="doIf"><custom-block s="won? %s"><l>X</l></custom-block><script><block s="bubble"><l>X won!</l></block><block s="doSetVar"><l>playing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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="doIf"><custom-block s="won? %s"><l>O</l></custom-block><script><block s="bubble"><l>O won!</l></block><block s="doSetVar"><l>playing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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="doIf"><block s="reportAnd"><block var="playing"/><custom-block s="tied?"></custom-block></block><script><block s="bubble"><l>It&apos;s a tie.</l></block></script></block></script></block></script><script x="33.66666666666666" y="588.6666666666666"><custom-block s="how many %s in %l"><l>o</l><block s="reportListItem"><l>1</l><custom-block s="status of all winning triples"></custom-block></block></custom-block></script><script x="366.000001" y="225.00000000000003"><block s="receiveMessage"><l><option>any message</option></l></block><block s="doIf"><block s="reportEquals"><block s="getLastMessage"></block><block var="position number"/></block><script><custom-block s="move in this square"></custom-block></script></block></script><script x="119.000001" y="347.0000000000001"><block s="receiveInteraction"><l><option>clicked</option></l></block><block s="doIf"><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block><script><custom-block s="move in this square"></custom-block></script></block><block s="doBroadcast"><block s="reportListItem"><l>1</l><custom-block s="best empty square"></custom-block></block></block></script><script x="384" y="69.66666666666666"><custom-block s="can player %s win now?"><l>O</l></custom-block></script><script x="480.5966796875" y="123.29999999999998"><block var="who"/></script></scripts></sprite><watcher scope="Square" var="position number" style="normal" x="10" y="298.50000199999994" color="243,118,29" hidden="true"/><watcher var="playing" style="normal" x="10" y="325.499996" color="243,118,29" hidden="true"/><watcher var="win lines" style="normal" x="10" y="177.99999799999998" color="243,118,29" hidden="true"/><watcher var="board" style="normal" x="0" y="27" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><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"><block s="errorObsolete"></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.77778077777774"><block s="reportJoinWords"><list><l></l><l></l></list></block></script></scripts></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="makeBoard" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doSwitchToCostume"><l>Empty</l></block><block s="show"></block><block s="setEffect"><l><option>ghost</option></l><l>30</l></block><block s="setScale"><l>95</l></block><block s="doSetVar"><l>position number</l><l>1</l></block><custom-block s="for %upvar = %n to %n %cs"><l>i</l><l>1</l><l>3</l><script><custom-block s="for %upvar = %n to %n %cs"><l>j</l><l>1</l><l>3</l><script><block s="gotoXY"><block s="reportSum"><l>-100</l><block s="reportProduct"><l>50</l><block var="j"/></block></block><block s="reportDifference"><l>100</l><block s="reportProduct"><l>50</l><block var="i"/></block></block></block><block s="createClone"><l><option>myself</option></l></block><block s="doChangeVar"><l>position number</l><l>1</l></block></script></custom-block></script></custom-block><block s="hide"></block></script></block-definition><block-definition s="possible winning triples" 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;triple&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="triple"/></block></block></script></block-definition><block-definition s="status of all winning triples" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportMap"><block s="reifyReporter"><autolambda><custom-block s="status of triple %l"><l/></custom-block></autolambda><list></list></block><custom-block s="possible winning triples"></custom-block></block></block></script></block-definition><block-definition s="won? %&apos;who&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doReport"><block s="reportListContainsItem"><custom-block s="status of all winning triples"></custom-block><block s="reportNewList"><list><block var="who"/><block var="who"/><block var="who"/></list></block></block></block></script></block-definition><block-definition s="tied?" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportEquals"><block s="reportFindFirst"><block s="reifyPredicate"><autolambda><block s="reportIsA"><l></l><l><option>number</option></l></block></autolambda><list></list></block><block var="board"/></block><l></l></block></block></script></block-definition><block-definition s="move in this square" type="command" category="motion"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIf"><block s="reportAnd"><block var="playing"/><block s="reportEquals"><block s="getCostumeIdx"></block><l>1</l></block></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="doIf"><custom-block s="won? %s"><l>X</l></custom-block><script><block s="bubble"><l>X won!</l></block><block s="doSetVar"><l>playing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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="doIf"><custom-block s="won? %s"><l>O</l></custom-block><script><block s="bubble"><l>O won!</l></block><block s="doSetVar"><l>playing</l><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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="doIf"><block s="reportAnd"><block var="playing"/><custom-block s="tied?"></custom-block></block><script><block s="bubble"><l>It&apos;s a tie.</l></block></script></block></script></block></script><scripts><script x="258.4208984375" y="358.1333333333334"><custom-block s="best number"></custom-block></script></scripts></block-definition><block-definition s="numbers only" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportIsA"><block s="reportListItem"><l></l><block var="board"/></block><l><option>number</option></l></block></autolambda><list></list></block><block var="board"/></block></block></script></block-definition><block-definition s="best empty square" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportIsA"><block s="reportListItem"><l></l><block var="board"/></block><l><option>number</option></l></block></autolambda><list></list></block><custom-block s="best number"></custom-block></block></block></script></block-definition><block-definition s="best number" type="reporter" category="variables"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportNewList"><list><l>5</l><l>1</l><l>3</l><l>7</l><l>9</l><l>2</l><l>4</l><l>6</l><l>8</l></list></block></block></script></block-definition><block-definition s="how many %&apos;who&apos; in %&apos;triple&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>how many x/o</l></list></block><block s="doSetVar"><l>how many x/o</l><l>0</l></block><block s="doForEach"><l>item</l><block var="triple"/><script><block s="doIf"><block s="reportEquals"><block var="item"/><block var="who"/></block><script><block s="doSetVar"><l>how many x/o</l><block s="reportSum"><block var="how many x/o"/><l>1</l></block></block></script></block></script></block><block s="doReport"><block var="how many x/o"/></block></script></block-definition><block-definition s="winning triple for player %&apos;who&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><l>8</l><script><block s="doIf"><block s="reportAnd"><block s="reportEquals"><l>2</l><custom-block s="how many %s in %l"><block var="who"/><block s="reportListItem"><block var="i"/><custom-block s="status of all winning triples"></custom-block></block></custom-block></block><block s="reportEquals"><l>0</l><custom-block s="how many %s in %l"><custom-block s="opponent %s"><block var="who"/></custom-block><block s="reportListItem"><block var="i"/><custom-block s="status of all winning triples"></custom-block></block></custom-block></block></block><script><block s="doReport"><block s="reportListItem"><block var="i"/><custom-block s="status of all winning triples"></custom-block></block></block></script></block></script></block></script></block-definition><block-definition s="winning square for player %&apos;who&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><l>3</l><script><block s="doIf"><block s="reportIsA"><block s="reportListItem"><block var="i"/><custom-block s="winning triple for player %s"><block var="who"/></custom-block></block><l><option>number</option></l></block><script><block s="doReport"><block s="reportListItem"><block var="i"/><custom-block s="winning triple for player %s"><block var="who"/></custom-block></block></block></script></block></script></block><block s="doReport"><l>No winning square</l></block></script></block-definition><block-definition s="opponent %&apos;who&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doIf"><block s="reportEquals"><block var="who"/><l>X</l></block><script><block s="doReport"><l>O</l></block></script></block><block s="doReport"><l>X</l></block></script></block-definition><block-definition s="can player %&apos;who&apos; win now?" type="predicate" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doIf"><block s="reportIsA"><custom-block s="winning square for player %s"><l>O</l></custom-block><l><option>number</option></l></block><script><block s="doReport"><l>Yes</l></block></script></block><block s="doReport"><l>No</l></block></script></block-definition></blocks><variables><variable name="X&apos;s turn?"><bool>true</bool></variable><variable name="board"><list struct="atomic" id="738">O,X,O,X,X,6,O,8,9</list></variable><variable name="playing"><bool>true</bool></variable><variable name="win lines"><list id="739"><item><list id="740"><item><list struct="atomic" id="741">-100,50</list></item><item><list struct="atomic" id="742">100,50</list></item></list></item><item><list id="743"><item><list struct="atomic" id="744">-100,0</list></item><item><list struct="atomic" id="745">100,0</list></item></list></item><item><list id="746"><item><list struct="atomic" id="747">-100,-50</list></item><item><list struct="atomic" id="748">100,-50</list></item></list></item><item><list id="749"><item><list struct="atomic" id="750">-50,100</list></item><item><list struct="atomic" id="751">-50,-100</list></item></list></item><item><list id="752"><item><list struct="atomic" id="753">0,100</list></item><item><list struct="atomic" id="754">0,-100</list></item></list></item><item><list id="755"><item><list struct="atomic" id="756">50,100</list></item><item><list struct="atomic" id="757">50,-100</list></item></list></item><item><list id="758"><item><list struct="atomic" id="759">-100,100</list></item><item><list struct="atomic" id="760">100,-100</list></item></list></item><item><list id="761"><item><list struct="atomic" id="762">-100,-100</list></item><item><list struct="atomic" id="763">100,100</list></item></list></item></list></variable></variables></project><media name="Unit 5 Lab 6" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>