<snapdata remixID="14098509"><project name="Battleship 6x6" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAFtFJREFUeF7tnQl0FEW3gG8DoqwKyKayQ2SPgKj8LiyKCoi7uO/7LjzFp7zn/9Sn58nzKLsEgSTsO4bALz7051cUVxZRlrCTQBKSEBI2FYG889WkuzMOpHtmeoYkU/ecOYGkurrn1te3qm7dumUUFRUViRatgdOkAUMDeJo0r2+rNKAAzM7OloKCAmncuLFWy180kJWVJeecc440atSowutm9erV0qxZM6lcuXLEviv6rFOnjqVPIz09vSgnJ0fOPfdcMQxD6JH1T3895OXlSYMGDaRJkyYRa5jTXfEXX3yh4AtWDuRmye4F78rxwwWlXlqpUiW5eEii/HaikuTm5sr5558vTZs2FWPlypVF5513nrp4/PjxcuLECbnnnnskKSlJrrjiCvn666/VG3HzzTfL/PnzVbkqVarImWeeKYcPH5aePXvKl19+qcr++OOP0rBhQ9m7d6/UqlVLaLjrrrtOFi5cKM2bN5fCwkJ5+umng/2OZaJ8Zmam9OjRo0w8i9cP8f3336v2QmhDPt27d1efU8kvv/winTp1ktUpk+Tmgrl+xar2eV6O/nN0wKUFXR+SA53uUr+n1+3Tp48YS5YsKWrfvr365ciRIyUuLk5SUlLk+uuvl927d0vLli0FQOfMmSMXXnihspC///67HD16VHXZ+fn5yqRu2rRJBg0aJN99953UrFlTPvvsMzl06JACELnkkkvk22+/lRdeeEGBW95kw4YN0r9///L22K6el3bGKiEJCQmqXWlDIGnbtq1s3LhRzjjjDMnIyFC9wLFjx6RevXqqbdctSZbbDi6w7lO5VQ8544rH5fiWL+XPlcl+998Xf7/kt7td/Y46MXQKwHbt2qlfYukmT54szzzzjCxdulRZsI4dO6q3g8+KFStU343FGzZsmCxbtkz69u0r06ZNk+rVq0uXLl1k+/btUrduXQXpkSNHlKXkQ13Hjx9XYPO38i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pys3ldFdcFY90GDQusZtC79NRAAIH9etmyZSudaUXLQedXoTDywyqwIafFGAycF0JuqdS1aA84a0AA660iXiKAGNIARVK6u2lkDGkBnHekSEdSABjCCytVVO2tAA+isI10ighrQAEZQubpqZw1oAJ11pEtEUAMawAgqV1ftrAENoLOOdIkIakADGEHl6qqdNaABdNaRLhFBDWgAI6hcXbWzBjSAzjrSJSKoAQ1gBJWrq3bWgAbQWUe6RAQ1oAGMoHJ11c4a+H9xf+Jrg2XUfQAAAABJRU5ErkJggg==</thumbnail><scenes select="1"><scene name="Battleship 6x6"><notes></notes><hidden></hidden><headers></headers><code></code><blocks><block-definition s="Convert to Indexes %&apos;Coordinates&apos;" type="reporter" category="other"><header></header><code></code><translations></translations><inputs><input type="%s" initial="1"></input></inputs><script><block s="doReport"><block s="reportNewList"><list><block s="reportListIndex"><block s="reportListItem"><l>1</l><block s="reportTextSplit"><block var="Coordinates"/><l><option>letter</option></l></block></block><block var="Dictionary"/></block><block s="reportListItem"><l>2</l><block s="reportTextSplit"><block var="Coordinates"/><l><option>letter</option></l></block></block></list></block></block></script></block-definition><block-definition s="UpdateBoard" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doIfElse"><block var="IsATurn"/><script><block s="doSetVar"><l>GameBoardHits</l><block var="PlayerAHits"/></block><block s="doSetVar"><l>GameBoardFriendly</l><block var="PlayerAShip"/></block><block s="bubble"><l>A Turn</l></block></script><script><block s="doSetVar"><l>GameBoardHits</l><block var="PlayerBHits"/></block><block s="doSetVar"><l>GameBoardFriendly</l><block var="PlayerBShip"/></block><block s="bubble"><l>B Turn</l></block></script></block></script></block-definition><block-definition s="CheckForHits %&apos;GridIndexes&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%l" initial="1"></input></inputs><script><block s="doDeclareVariables"><list><l>ShipBoard</l><l>hitValue</l></list></block><block s="doIfElse"><block var="IsATurn"/><script><block s="doSetVar"><l>ShipBoard</l><block var="PlayerBShip"/></block></script><script><block s="doSetVar"><l>ShipBoard</l><block var="PlayerAShip"/></block></script></block><block s="doSetVar"><l>hitValue</l><block s="reportListItem"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="ShipBoard"/></block></block></block><block s="doIfElse"><block s="reportVariadicOr"><list><block s="reportVariadicEquals"><list><block var="hitValue"/><l>&lt;</l></list></block><block s="reportVariadicEquals"><list><block var="hitValue"/><l>=</l></list></block><block s="reportVariadicEquals"><list><block var="hitValue"/><l>^</l></list></block><block s="reportVariadicEquals"><list><block var="hitValue"/><l>|</l></list></block><block s="reportVariadicEquals"><list><block var="hitValue"/><l>X</l></list></block></list></block><script><block s="doIfElse"><block var="IsATurn"/><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerBShip"/></block><l>X</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerAHits"/></block><l>X</l></block></script><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerAShip"/></block><l>X</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerBHits"/></block><l>X</l></block></script></block></script><script><block s="doIfElse"><block var="IsATurn"/><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerBShip"/></block><l>O</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerAHits"/></block><l>O</l></block></script><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerAShip"/></block><l>O</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="GridIndexes"/></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="GridIndexes"/></block><block var="PlayerBHits"/></block><l>O</l></block></script></block></script></block></script></block-definition><block-definition s="PlaceShip Length: %&apos;Length&apos; GridSquare: %&apos;Square&apos; Direction: %&apos;Direction&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%s" initial="1"></input><input type="%l" initial="1"></input><input type="%s" initial="1"></input></inputs><script><block s="doIf"><block s="reportVariadicEquals"><list><block s="reportTextAttribute"><l><option>lower case</option></l><block var="Direction"/></block><l>h</l></list></block><script><block s="doIf"><block s="reportVariadicLessThan"><list><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></block><l>1</l></list></block><script><block s="doReplaceInList"><l>1</l><block var="Square"/><block s="reportVariadicSum"><list><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></list></block></block></script><list><block s="reportVariadicLessThan"><list><l>6</l><block s="reportVariadicSum"><list><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></list></block></list></block><script><block s="doReplaceInList"><l>1</l><block var="Square"/><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></block></block></script></list></block><block s="doIfElse"><block var="IsATurn"/><script><block s="doIf"><block s="reportVariadicEquals"><list><block var="Length"/><l>3</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>&lt;</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>=</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>-1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>=</l></block></script><list><block s="reportVariadicEquals"><list><block var="Length"/><l>2</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>&lt;</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>-1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>=</l></block></script><block s="reportVariadicEquals"><list><block var="Length"/><l>1</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerAShip"/></block><l>&lt;</l></block></script></list></block></script><script><block s="doIf"><block s="reportVariadicEquals"><list><block var="Length"/><l>3</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>&lt;</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>=</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>-1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>=</l></block></script><list><block s="reportVariadicEquals"><list><block var="Length"/><l>2</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>&lt;</l></block><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>-1</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>=</l></block></script><block s="reportVariadicEquals"><list><block var="Length"/><l>1</l></list></block><script><block s="doReplaceInList"><block s="reportDifference"><block s="reportListItem"><l>1</l><block var="Square"/></block><l>0</l></block><block s="reportListItem"><block s="reportListItem"><l>2</l><block var="Square"/></block><block var="PlayerBShip"/></block><l>&lt;</l></block></script></list></block></script></block></script><list><block s="reportVariadicEquals"><list><block s="reportTextAttribute"><l><option>lower case</option></l><block var="Direction"/></block><l>v</l></list></block><script><block s="doIf"><block s="reportVariadicLessThan"><list><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></block><l>1</l></list></block><script><block s="doReplaceInList"><l>2</l><block var="Square"/><block s="reportVariadicSum"><list><block s="reportListItem"><l>2</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></list></block></block></script><list><block s="reportVariadicLessThan"><list><l>6</l><block s="reportVariadicSum"><list><block s="reportListItem"><l>2</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></list></block></list></block><script><block s="doReplaceInList"><l>2</l><block var="Square"/><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block var="Length"/><l>2</l></block></block></block></block></script></list></block><block s="doIfElse"><block var="IsATurn"/><script><block s="doIf"><block s="reportVariadicEquals"><list><block var="Length"/><l>3</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>1</l></block><block var="PlayerAShip"/></block><l>^</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerAShip"/></block><l>|</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>-1</l></block><block var="PlayerAShip"/></block><l>|</l></block></script><list><block s="reportVariadicEquals"><list><block var="Length"/><l>2</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerAShip"/></block><l>^</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>-1</l></block><block var="PlayerAShip"/></block><l>|</l></block></script><block s="reportVariadicEquals"><list><block var="Length"/><l>1</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerAShip"/></block><l>^</l></block></script></list></block></script><script><block s="doIf"><block s="reportVariadicEquals"><list><block var="Length"/><l>3</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>1</l></block><block var="PlayerBShip"/></block><l>^</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerBShip"/></block><l>|</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>-1</l></block><block var="PlayerBShip"/></block><l>|</l></block></script><list><block s="reportVariadicEquals"><list><block var="Length"/><l>2</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerBShip"/></block><l>^</l></block><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>-1</l></block><block var="PlayerBShip"/></block><l>|</l></block></script><block s="reportVariadicEquals"><list><block var="Length"/><l>1</l></list></block><script><block s="doReplaceInList"><block s="reportListItem"><l>1</l><block var="Square"/></block><block s="reportListItem"><block s="reportDifference"><block s="reportListItem"><l>2</l><block var="Square"/></block><l>0</l></block><block var="PlayerBShip"/></block><l>^</l></block></script></list></block></script></block></script></list></block></script></block-definition><block-definition s="CheckForWin" type="command" category="other"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doDeclareVariables"><list><l>ShipPartsRemainingA</l><l>ShipPartsRemainingB</l></list></block><block s="doSetVar"><l>ShipPartsRemainingA</l><l>0</l></block><block s="doSetVar"><l>ShipPartsRemainingB</l><l>0</l></block><block s="doForEach"><l>item</l><block var="PlayerAShip"/><script><block s="doForEach"><l>item2</l><block var="item"/><script><block s="doIf"><block s="reportVariadicOr"><list><block s="reportVariadicEquals"><list><block var="item2"/><l>&lt;</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>=</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>^</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>|</l></list></block></list></block><script><block s="doChangeVar"><l>ShipPartsRemainingA</l><l>1</l></block></script><list></list></block></script></block></script></block><block s="doForEach"><l>item</l><block var="PlayerBShip"/><script><block s="doForEach"><l>item2</l><block var="item"/><script><block s="doIf"><block s="reportVariadicOr"><list><block s="reportVariadicEquals"><list><block var="item2"/><l>&lt;</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>=</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>^</l></list></block><block s="reportVariadicEquals"><list><block var="item2"/><l>|</l></list></block></list></block><script><block s="doChangeVar"><l>ShipPartsRemainingB</l><l>1</l></block></script><list></list></block></script></block></script></block><block s="doIf"><block s="reportVariadicEquals"><list><block var="ShipPartsRemainingA"/><l>0</l></list></block><script><block s="doSetVar"><l>HasWon</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doSetVar"><l>GameBoardFriendly</l><block s="reportNewList"><list><block s="reportNewList"><list><l>Y</l><l>O</l><l>U</l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l>W</l><l>I</l><l>N</l><l>!</l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block></script><list><block s="reportVariadicEquals"><list><block var="ShipPartsRemainingB"/><l>0</l></list></block><script><block s="doSetVar"><l>HasWon</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doSetVar"><l>GameBoardFriendly</l><block s="reportNewList"><list><block s="reportNewList"><list><l>Y</l><l>O</l><l>U</l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l>W</l><l>I</l><l>N</l><l>!</l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block></script></list></block></script></block-definition></blocks><primitives></primitives><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" penlog="false" volume="100" pan="0" lines="round" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" id="1198"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAADoVJREFUeF7t1cEJAAAIxDDdf2m3sJ+4wEEQuuMIECBAgACBd4F9XzRIgAABAgQIjAB7AgIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmC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QIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECByxcQFpoRMBzwAAAABJRU5ErkJggg==</pentrails><costumes><list struct="atomic" id="1199"></list></costumes><sounds><list struct="atomic" id="1200"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites select="1"><sprite name="Sprite" idx="1" x="68" y="-41" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="1205"><costumes><list struct="atomic" id="1206"></list></costumes><sounds><list struct="atomic" id="1207"></list></sounds><blocks></blocks><variables></variables><scripts><script x="394.4999999999999" y="10"><block s="receiveGo"></block><block s="doDeclareVariables"><list><l>TemplateBoard</l></list></block><block s="doSetVar"><l>HasWon</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doSetVar"><l>IsATurn</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doSetVar"><l>TemplateBoard</l><block s="reportNewList"><list><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block><block s="doSetVar"><l>PlayerAHits</l><block s="reportNewList"><list><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block><block s="doSetVar"><l>PlayerBHits</l><block s="reportNewList"><list><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block><block s="doSetVar"><l>PlayerAShip</l><block s="reportNewList"><list><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block><block s="doSetVar"><l>PlayerBShip</l><block s="reportNewList"><list><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block><block s="reportNewList"><list><l></l><l></l><l></l><l></l><l></l><l></l></list></block></list></block></block><block s="doSetVar"><l>Dictionary</l><block s="reportNewList"><list><l>a</l><l>b</l><l>c</l><l>d</l><l>e</l><l>f</l></list></block></block><block s="doSetVar"><l>Round</l><l>0</l></block><block s="doUntil"><block var="HasWon"/><script><custom-block s="UpdateBoard"></custom-block><block s="doIf"><block var="IsATurn"/><script><block s="doChangeVar"><l>Round</l><l>1</l></block></script><list></list></block><block s="doIfElse"><block s="reportVariadicEquals"><list><block var="Round"/><l>1</l></list></block><script><block s="doDeclareVariables"><list><l>GridPlaces</l><l>Directional</l></list></block><block s="doAsk"><l>Where do you want to place your destroyer?</l></block><block s="doSetVar"><l>GridPlaces</l><custom-block s="Convert to Indexes %s"><block s="getLastAnswer"></block></custom-block></block><block s="doAsk"><l>Do you want to play your destroyer vertical or horizontal? v/h</l></block><block s="doSetVar"><l>Directional</l><block s="getLastAnswer"></block></block><custom-block s="PlaceShip Length: %s GridSquare: %l Direction: %s"><l>3</l><block var="GridPlaces"/><block var="Directional"/></custom-block><custom-block s="UpdateBoard"></custom-block><block s="doAsk"><l>Where do you want to place your gunboat?</l></block><block s="doSetVar"><l>GridPlaces</l><custom-block s="Convert to Indexes %s"><block s="getLastAnswer"></block></custom-block></block><block s="doAsk"><l>Do you want to play your gunboat vertical or horizontal? v/h</l></block><block s="doSetVar"><l>Directional</l><block s="getLastAnswer"></block></block><custom-block s="PlaceShip Length: %s GridSquare: %l Direction: %s"><l>2</l><block var="GridPlaces"/><block var="Directional"/></custom-block><custom-block s="UpdateBoard"></custom-block><block s="doAsk"><l>Where do you want to place your riverine?</l></block><block s="doSetVar"><l>GridPlaces</l><custom-block s="Convert to Indexes %s"><block s="getLastAnswer"></block></custom-block></block><block s="doAsk"><l>Do you want to play your riverine vertical or horizontal? v/h</l></block><block s="doSetVar"><l>Directional</l><block s="getLastAnswer"></block></block><custom-block s="PlaceShip Length: %s GridSquare: %l Direction: %s"><l>1</l><block var="GridPlaces"/><block var="Directional"/></custom-block><custom-block s="UpdateBoard"></custom-block></script><script><block s="doAsk"><l>What square do you want to fire at?</l></block><custom-block s="CheckForHits %l"><custom-block s="Convert to Indexes %s"><block s="getLastAnswer"></block></custom-block></custom-block><custom-block s="UpdateBoard"></custom-block><custom-block s="CheckForWin"></custom-block></script></block><block s="doSetVar"><l>IsATurn</l><block s="reportNot"><block var="IsATurn"/></block></block></script></block></script></scripts></sprite><watcher var="GameBoardFriendly" style="normal" x="10" y="165.000002" color="243,118,29" extX="200" extY="120"/><watcher var="HasWon" style="normal" x="10" y="164.000002" color="243,118,29" hidden="true"/><watcher var="Dictionary" style="normal" x="10" y="185.000004" color="243,118,29" hidden="true"/><watcher var="PlayerAHits" style="normal" x="10" y="206.00000599999998" color="243,118,29" hidden="true"/><watcher var="PlayerAShip" style="normal" x="10" y="248.00000999999997" color="243,118,29" hidden="true"/><watcher var="PlayerBShip" style="normal" x="10" y="269.00001199999997" color="243,118,29" hidden="true"/><watcher var="Target" style="normal" x="386" y="116.00001599999996" color="243,118,29" hidden="true"/><watcher var="IsATurn" style="normal" x="350" y="285.00001399999996" color="243,118,29" hidden="true"/><watcher var="PlayerBHits" style="normal" x="94" y="132.00000799999998" color="243,118,29" hidden="true"/><watcher var="GameBoardHits" style="normal" x="0" y="7" color="243,118,29" extX="200" extY="120"/><watcher var="Round" style="normal" x="388" y="6.999998000000005" color="243,118,29"/></sprites></stage><variables><variable name="GameBoardFriendly"><list id="1684"><item><list struct="atomic" id="1685">Y,O,U,,,</list></item><item><list struct="atomic" id="1686">W,I,N,!,,</list></item><item><list struct="atomic" id="1687">,,,,,</list></item><item><list struct="atomic" id="1688">,,,,,</list></item><item><list struct="atomic" id="1689">,,,,,</list></item><item><list struct="atomic" id="1690">,,,,,</list></item></list></variable><variable name="GameBoardHits"><list id="1691"><item><list struct="atomic" id="1692">X,X,X,,,</list></item><item><list struct="atomic" id="1693">,X,X,,,</list></item><item><list struct="atomic" id="1694">,O,X,,,</list></item><item><list struct="atomic" id="1695">,,,,,</list></item><item><list struct="atomic" id="1696">,,,,,</list></item><item><list struct="atomic" id="1697">,,,,,</list></item></list></variable><variable name="HasWon"><bool>true</bool></variable><variable name="Dictionary"><list struct="atomic" id="1698">a,b,c,d,e,f</list></variable><variable name="PlayerAHits"><ref id="1691"></ref></variable><variable name="PlayerBHits"><list id="1699"><item><list struct="atomic" id="1700">X,,O,,,</list></item><item><list struct="atomic" id="1701">X,,,,,</list></item><item><list struct="atomic" id="1702">X,,,,,</list></item><item><list struct="atomic" id="1703">,,,,,</list></item><item><list struct="atomic" id="1704">,,,,,</list></item><item><list struct="atomic" id="1705">,,,,,</list></item></list></variable><variable name="PlayerAShip"><list id="1706"><item><list struct="atomic" id="1707">X,,O,,,</list></item><item><list struct="atomic" id="1708">X,^,^,,,</list></item><item><list struct="atomic" id="1709">X,|,,,,</list></item><item><list struct="atomic" id="1710">,,,,,</list></item><item><list struct="atomic" id="1711">,,,,,</list></item><item><list struct="atomic" id="1712">,,,,,</list></item></list></variable><variable name="PlayerBShip"><list id="1713"><item><list struct="atomic" id="1714">X,X,X,,,</list></item><item><list struct="atomic" id="1715">,X,X,,,</list></item><item><list struct="atomic" id="1716">,O,X,,,</list></item><item><list struct="atomic" id="1717">,,,,,</list></item><item><list struct="atomic" id="1718">,,,,,</list></item><item><list struct="atomic" id="1719">,,,,,</list></item></list></variable><variable name="IsATurn"><bool>false</bool></variable><variable name="Target"><list struct="atomic" id="1720">1,2,X</list></variable><variable name="Round"><l>9</l></variable></variables></scene></scenes></project><media name="Battleship 6x6" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"></media></snapdata>