<snapdata remixID="10349974"><project name="sand box" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes>Number keys to select type&#xD;Mouse button to place type&#xD;&#xD;I decided to make a sandbox game because I thought it&apos;d be fun and in sayochi&apos;s version sand doesn&apos;t fall down slopes.</notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAFcklEQVR4Xu2dz0ulZRiGn6PSjBIJoRv74bH8AW4MJpIiSNFjIO5EaDOu3Ogu/APmuHE1YISBiKsGXAT9BW5ORIsQjAl0kSkHQRISmZBAKzvxHUg4zNHzPXhT73zv9cEHw5z3vn2f67k4MqvJFYvFivFA4H8ikEsELJfLlrw8EPivCOTzeUveqoClUsmS999nYmLC+vv7raWl5c73OT09tZ2dHdvb27tzFwXZITAyMmLJ+5yAKysrNjU1deOkra2t1rn3VSoSf3S9Yyf33rDLy0tbXl62zc3NVDkOZZ9AXQFHR0dtdXX11uk7Ozut9fGDmjNNrw+ZXf1pf/9S+y330vin9vNrH1fPnpyc2NjYWPbJMmEqAnUFnJubs4WFBcvlcra2tmYXFxfVX8ODg4PW29trPT09lgj48sp7NT/k3ief2dVP39pfO1/X/H0i4G7HSLWvUqnY+Pi4nZ2dpbogh7JNoK6AMzMztri4WJ18Y2PDurq6rKmpyYaHh216etq2t7etvb3d2j9/v4ZO8+C45e631xXwh1c+uD5bKBTs/Pw822SZLhWBugIODAzY+vp69Rsr+eZra2ur/jl5EvGOjo6su7vbXv3iw1Q/JPkG/P7+u9Wzu7u7Nj8/nyrHoewTuPEfIbOzszY5OWkdHR03UnjTfrWrg+8aUMrZ7w9m7dmz3+zw8NCWlpbs+Pg4+2SZMBWBGwVM0sk3X19fnzU3N6cqu+1Q8it3f3//zj0UZIvArQJma1SmCZEAAoa4lYjuhIARLTvEUREwxK1EdCcEjGjZIY6KgCFuJaI7IWBEyw5xVAQMcSsR3QkBI1p2iKMiYIhbiehOCBjRskMcFQFD3EpEd0LAiJYd4qgIGOJW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safe="false" penlog="false" volume="100" pan="0" lines="flat" ternary="false" hyperops="true" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAQaElEQVR4Xu3ZQW4TYRCEUXI4rsR61lyJwwWJpUFK4nhc+YbHLiJ2d7/6US14OY7j9Zs/BAgQIECAwFMFXhTwU70NI0CAAAECfwQUsIdAgAABAgQGAgp4gG4kAQIECBD4q4CP46BCgAABAgQIPFjgtl8V8IOBfR0BAgQIEPiXgAL2LggQIECAwEBAAQ/QjSRAgAABAgrYGyBAgAABAgMBBTxAN5IAAQIECChgb4AAAQIECAwEFPAA3UgCBAgQIKCAvQECBAgQIDAQUMADdCMJECBAgIAC9gYIECBAgMBAQAEP0I0kQIAAAQIK2BsgQIAAAQIDAQU8QDeSAAECBAgoYG+AAAECBAgMBBTwAN1IAgQIECCggL0BAgQIECAwEFDAA3QjCRAgQICAAvYGCBAgQIDAQEABD9CNJECAAAECCtgbIECAAAECAwEFPEA3kgABAgQIKGBvgAABAgQIDAQU8ADdSAIECBAgoIC9AQIECBAgMBBQwAN0IwkQIECAgAL2BggQIECAwEBAAQ/QjSRAgAABAgrYGyBAgAABAgMBBTxAN5IAAQIECChgb4AAAQIECAwEFPAA3UgCBAgQIKCAvQECBAgQIDAQUMADdCMJECBAgIAC9gYIECBAgMBAQAEP0I0kQIAAAQIK2BsgQIAAAQIDAQU8QDeSAAECBAgoYG+AAAECBAgMBBTwAN1IAgQIECCggL0BAgQIECAwEFDAA3QjCRAgQICAAvYGCBAgQIDAQEABD9CNJECAAAECCtgbIECAAAECAwEFPEA3kgABAgQIKGBvgAABAgQIDAQU8ADdSAIECBAgoIC9AQIECBAgMBBQwAN0IwkQIECAgAL2BggQIECAwEBAAQ/QjSRAgAABAgrYGyBAgAABAgMBBTxAN5IAAQIECChgb4AAAQIECAwEFPAA3UgCBAgQIKCAvQECBAgQIDAQUMADdCMJECBA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KuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gAABAgSKAgq4mJqdCRAgQCAvoIDzETqAAAECBIoCCriYmp0JECBAIC+ggPMROoAAAQIEigIKuJianQkQIEAgL6CA8xE6gMBO4PXXzw8Nf/n+40O/75cJXFlAAV85XbcROFlAAZ8M7OsvLaCALx2v4wicK6CAz/X17dcWUMDXztd1BE4VUMCn8vryiwso4IsH7Lz/S+C2EB/9f64fLdy39B+931vz/D2BrySggL9SGnYh8EkBBfxJQB8n8EQBBfxEbKMInC2ggM8W9v0EHieggB9n6ZsIzAUU8DwCCxB4t8CbBfzub/KLBAgQIECAwN0CL8dxvN79aR8kQIAAAQIE7hJQwHex+RABAgQIEPicgAL+nJ9PEyBAgACBuwR+A7CE1Gpv4bGGAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><sprite name="sim" idx="1" x="47.99999999999818" y="-170.0000000000001" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="false" hidden="true" costume="0" color="0,0,0,1" pen="tip" id="8"><costumes><list struct="atomic" id="9"></list></costumes><sounds><list struct="atomic" id="10"></list></sounds><blocks></blocks><variables></variables><scripts><script x="14" y="14"><block s="receiveGo"></block><block s="doSetGlobalFlag"><l><option>flat line ends</option></l><l><bool>true</bool></l></block><block s="setSize"><l>2</l></block><block s="doSetVar"><l>cell colors</l><block s="reportNewList"><list><l>empty</l><block s="reportNewList"><list><l>0</l><l>0</l><l>0</l></list></block><l>wall</l><block s="reportNewList"><list><l>0</l><l>0</l><l>50</l></list></block><l>sand</l><block s="reportNewList"><list><l>7</l><l>46</l><l>100</l></list></block><l>water</l><block s="reportNewList"><list><l>59</l><l>80</l><l>100</l></list></block><l>oil</l><block s="reportNewList"><list><l>9</l><l>100</l><l>90</l></list></block></list></block></block><block s="doSetVar"><l>world width</l><l>120</l></block><block s="doSetVar"><l>world height</l><l>90</l></block><block s="doSetVar"><l>cell width</l><block s="reportQuotient"><block s="reportAttributeOf"><l><option>width</option></l><l>Stage</l></block><block var="world width"/></block></block><block s="doSetVar"><l>cell height</l><block s="reportQuotient"><block s="reportAttributeOf"><l><option>height</option></l><l>Stage</l></block><block var="world height"/></block></block><block s="doSetVar"><l>world</l><custom-block s="table of %s width %n height %n"><l>empty</l><block var="world width"/><block var="world height"/></custom-block></block><block s="doSetVar"><l>world updates</l><block s="reportNewList"><list></list></block></block><block s="doWarp"><script><block s="doFor"><l>y</l><l>1</l><block var="world height"/><script><custom-block s="set item %n %n of table %l to %s"><l>1</l><block var="y"/><block var="world"/><l>wall</l></custom-block><custom-block s="set item %n %n of table %l to %s"><block var="world width"/><block var="y"/><block var="world"/><l>wall</l></custom-block></script></block><block s="doFor"><l>x</l><l>1</l><block var="world width"/><script><custom-block s="set item %n %n of table %l to %s"><block var="x"/><l>1</l><block var="world"/><l>wall</l></custom-block><custom-block s="set item %n %n of table %l to %s"><block var="x"/><block var="world height"/><block var="world"/><l>wall</l></custom-block></script></block><block s="clear"></block><block s="doFor"><l>x</l><l>1</l><block var="world width"/><script><block s="doFor"><l>y</l><l>1</l><block var="world height"/><script><custom-block s="draw %n %n of world"><block var="x"/><block var="y"/></custom-block></script></block></script></block></script></block><block s="doDeclareVariables"><list><l>next</l></list></block><block s="doSetVar"><l>next</l><block s="reportDate"><l><option>time in milliseconds</option></l></block></block><block s="doForever"><script><block s="doIf"><block s="reportNot"><block s="reportGlobalFlag"><l><option>turbo mode</option></l></block></block><script><block s="doWaitUntil"><block s="reportGreaterThanOrEquals"><block s="reportDate"><l><option>time in milliseconds</option></l></block><block var="next"/></block></block></script></block><block s="doSetVar"><l>next</l><block s="reportSum"><block s="reportDate"><l><option>time in milliseconds</option></l></block><block s="reportQuotient"><l>1000</l><l>30</l></block></block></block><block s="doSetVar"><l>ms</l><block s="reportDate"><l><option>time in milliseconds</option></l></block></block><block s="doWarp"><script><block s="doDeclareVariables"><list><l>updates</l></list></block><block s="doSetVar"><l>updates</l><block s="reportMonadic"><l><option>id</option></l><block var="world updates"/></block></block><block s="doDeleteFromList"><l><option>all</option></l><block var="world updates"/></block><block s="doForEach"><l>update</l><block var="updates"/><script><custom-block s="draw %n %n of world"><block s="reportListItem"><l>1</l><block var="update"/></block><block s="reportListItem"><l>2</l><block var="update"/></block></custom-block><custom-block s="physics update %n %n"><block s="reportListItem"><l>1</l><block var="update"/></block><block s="reportListItem"><l>2</l><block var="update"/></block></custom-block></script></block></script></block><block s="doSetVar"><l>mouse grid x</l><block s="reportSum"><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block s="reportSum"><block s="reportMouseX"></block><l>240</l></block><block var="cell width"/></block></block><l>1</l></block></block><block s="doSetVar"><l>mouse grid y</l><block s="reportSum"><block s="reportMonadic"><l><option>floor</option></l><block s="reportQuotient"><block s="reportSum"><block s="reportMouseY"></block><l>180</l></block><block var="cell height"/></block></block><l>1</l></block></block><block s="doIf"><block s="reportAnd"><block s="reportMouseDown"></block><block s="reportAnd"><block s="reportNot"><block s="reportOr"><block s="reportLessThanOrEquals"><block var="mouse grid x"/><l>1</l></block><block s="reportGreaterThanOrEquals"><block var="mouse grid x"/><block var="world width"/></block></block></block><block s="reportNot"><block s="reportOr"><block s="reportLessThanOrEquals"><block var="mouse grid y"/><l>1</l></block><block s="reportGreaterThanOrEquals"><block var="mouse grid y"/><block var="world height"/></block></block></block></block></block><script><block s="doIf"><block s="reportNotEquals"><custom-block s="item %n %n of table %l"><block var="mouse grid x"/><block var="mouse grid y"/><block var="world"/></custom-block><block var="mouse block"/></block><script><custom-block s="set item %n %n of table %l to %s"><block var="mouse grid x"/><block var="mouse grid y"/><block var="world"/><block var="mouse block"/></custom-block><custom-block s="queue update %n %n"><block var="mouse grid x"/><block var="mouse grid y"/></custom-block><custom-block s="queue update %n %n"><block s="reportDifference"><block var="mouse grid x"/><l>1</l></block><block var="mouse grid y"/></custom-block><custom-block s="queue update %n %n"><block s="reportSum"><block var="mouse grid x"/><l>1</l></block><block var="mouse grid y"/></custom-block><custom-block s="queue update %n %n"><block var="mouse grid x"/><block s="reportSum"><block var="mouse grid y"/><l>1</l></block></custom-block><custom-block s="queue update %n %n"><block var="mouse grid x"/><block s="reportDifference"><block var="mouse grid y"/><l>1</l></block></custom-block></script></block></script></block><block s="doSetVar"><l>ms</l><block s="reportRound"><block s="reportDifference"><block s="reportDate"><l><option>time in milliseconds</option></l></block><block var="ms"/></block></block></block></script></block></script><script x="929.083984375" y="1266.4999999999995"><block s="reportDifference"><l></l><l>1</l></block></script><script x="486.140625" y="73.83333333333462"><block s="receiveKey"><l><option>0</option></l></block><block s="doSetVar"><l>mouse block</l><l>empty</l></block></script><script x="646" y="72.83333333333326"><block s="receiveKey"><l><option>1</option></l></block><block s="doSetVar"><l>mouse block</l><l>wall</l></block></script><script x="798" y="74.16666666666606"><block s="receiveKey"><l><option>2</option></l></block><block s="doSetVar"><l>mouse block</l><l>sand</l></block></script><script x="490" y="142.66666666666652"><block s="receiveKey"><l><option>3</option></l></block><block s="doSetVar"><l>mouse block</l><l>water</l></block></script><script x="648" y="136.66666666666652"><block s="receiveKey"><l><option>4</option></l></block><block s="doSetVar"><l>mouse block</l><l>oil</l></block></script><script x="881" y="420"><block s="receiveGo"></block><block s="doSetVar"><l>update procs</l><block s="reportNewList"><list><block s="reportNewList"><list><l>sand</l><block s="reifyScript"><script><block s="doIf"><custom-block s="%n %n of world is a %s"><block var="x"/><block s="reportDifference"><block var="y"/><l>1</l></block><l>air or liquid</l></custom-block><script><block s="doReport"><block s="reportNewList"><list><l>0</l><l>-1</l></list></block></block></script></block><block s="doIf"><custom-block s="%n %n of world is a %s"><block s="reportDifference"><block var="x"/><l>1</l></block><block s="reportDifference"><block var="y"/><l>1</l></block><l>air or liquid</l></custom-block><script><block s="doReport"><block s="reportNewList"><list><l>-1</l><l>-1</l></list></block></block></script></block><block s="doIf"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><l>1</l></block><block s="reportDifference"><block var="y"/><l>1</l></block><l>air or liquid</l></custom-block><script><block s="doReport"><block s="reportNewList"><list><l>1</l><l>-1</l></list></block></block></script></block><block s="doReport"><block s="reportNewList"><list><l>0</l><l>0</l></list></block></block></script><list><l>x</l><l>y</l></list></block></list></block><block s="reportNewList"><list><l>water</l><block s="reifyScript"><script><block s="doDeclareVariables"><list><l>dx</l><l>dy</l><l>doSleep?</l></list></block><block s="doSetVar"><l>dx</l><l>0</l></block><block s="doSetVar"><l>dy</l><l>-1</l></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block var="x"/><block s="reportDifference"><block var="y"/><l>1</l></block><l>air</l></custom-block></block><script><block s="doSetVar"><l>dy</l><l>0</l></block><block s="doSetVar"><l>dx</l><block s="reportDifference"><block s="reportProduct"><block s="reportRandom"><l>0</l><l>1</l></block><l>2</l></block><l>1</l></block></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block var="y"/><l>air</l></custom-block></block><script><block s="doSetVar"><l>dx</l><l>0</l></block></script></block></script></block><block s="doSetVar"><l>doSleep?</l><block s="reportAnd"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportDifference"><block var="x"/><l>1</l></block><block var="y"/><l>air</l></custom-block></block><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><l>1</l></block><block var="y"/><l>air</l></custom-block></block></block></block><block s="doReport"><block s="reportNewList"><list><block var="dx"/><block var="dy"/><block s="reportNot"><block var="doSleep?"/></block></list></block></block></script><list><l>x</l><l>y</l></list></block></list></block><block s="reportNewList"><list><l>oil</l><block s="reifyScript"><script><block s="doDeclareVariables"><list><l>dx</l><l>dy</l><l>doSleep?</l></list></block><block s="doSetVar"><l>dx</l><l>0</l></block><block s="doSetVar"><l>dy</l><l>-1</l></block><block s="doIfElse"><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block s="reportSum"><block var="y"/><l>1</l></block><block var="world"/></custom-block><l>water</l></block><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block s="reportSum"><block var="x"/><l>1</l></block><block s="reportSum"><block var="y"/><l>1</l></block><block var="world"/></custom-block><l>water</l></block><block s="reportEquals"><custom-block s="item %n %n of table %l"><block s="reportDifference"><block var="x"/><l>1</l></block><block s="reportSum"><block var="y"/><l>1</l></block><block var="world"/></custom-block><l>water</l></block></block></block><script><block s="doSetVar"><l>dx</l><block s="reportDifference"><block s="reportProduct"><block s="reportRandom"><l>0</l><l>1</l></block><l>2</l></block><l>1</l></block></block><block s="doSetVar"><l>dy</l><l>1</l></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block s="reportSum"><block var="y"/><l>1</l></block><l>noncollidable for oil</l></custom-block></block><script><block s="doSetVar"><l>dx</l><block s="reportMonadic"><l><option>neg</option></l><block var="dx"/></block></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block s="reportSum"><block var="y"/><l>1</l></block><l>noncollidable for oil</l></custom-block></block><script><block s="doSetVar"><l>dx</l><l>0</l></block></script></block></script></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block s="reportSum"><block var="y"/><l>1</l></block><l>noncollidable for oil</l></custom-block></block><script><block s="doSetVar"><l>dy</l><l>0</l></block></script></block></script><script><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block var="x"/><block s="reportDifference"><block var="y"/><l>1</l></block><l>air</l></custom-block></block><script><block s="doSetVar"><l>dy</l><l>0</l></block><block s="doSetVar"><l>dx</l><block s="reportDifference"><block s="reportProduct"><block s="reportRandom"><l>0</l><l>1</l></block><l>2</l></block><l>1</l></block></block><block s="doIf"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block var="y"/><l>air</l></custom-block></block><script><block s="doSetVar"><l>dx</l><l>0</l></block></script></block></script></block></script></block><block s="doSetVar"><l>doSleep?</l><block s="reportAnd"><block s="reportAnd"><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportDifference"><block var="x"/><l>1</l></block><block var="y"/><l>noncollidable for oil</l></custom-block></block><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><l>1</l></block><block var="y"/><l>noncollidable for oil</l></custom-block></block></block><block s="reportNot"><custom-block s="%n %n of world is a %s"><block s="reportSum"><block var="x"/><block var="dx"/></block><block s="reportSum"><block var="y"/><block var="dy"/></block><l>noncollidable for oil</l></custom-block></block></block></block><block s="doReport"><block s="reportNewList"><list><block var="dx"/><block var="dy"/><block s="reportNot"><block var="doSleep?"/></block></list></block></block></script><list><l>x</l><l>y</l></list></block></list></block></list></block></block></script><script x="99.07421875" y="1444.166666666667"><block s="reportQuotient"><l>1000</l><l></l></block></script><script x="817" y="205.83333333333326"><block s="doWarp"><script><block s="clear"></block><block s="doFor"><l>x</l><l>1</l><block var="world width"/><script><block s="doFor"><l>y</l><l>1</l><block var="world height"/><script><custom-block s="draw %n %n of world"><block var="x"/><block var="y"/></custom-block></script></block></script></block></script><comment w="90" collapsed="true">redraw entire screen</comment></block></script></scripts></sprite><watcher var="world width" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher var="world height" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher var="world" style="normal" x="10" y="52.00000399999999" color="243,118,29" hidden="true"/><watcher var="cell width" style="normal" x="10" y="307.0000059999999" color="243,118,29" hidden="true"/><watcher var="cell height" style="normal" x="10" y="328.00000799999947" color="243,118,29" hidden="true"/><watcher var="cell colors" style="normal" x="10" y="338.9999979999997" color="243,118,29" hidden="true"/><watcher var="mouse grid x" style="large" x="5" y="332.9999979999995" color="243,118,29" hidden="true"/><watcher var="mouse grid y" style="large" x="54" y="332.9999979999995" color="243,118,29" hidden="true"/><watcher var="mouse block" style="normal" x="10" y="338.9999979999997" color="243,118,29" hidden="true"/><watcher var="update procs" style="normal" x="10" y="338.9999979999997" color="243,118,29" hidden="true"/><watcher var="world updates" style="normal" x="10" y="266.999998" color="243,118,29" hidden="true"/><watcher var="ms" style="normal" x="10" y="6.999998000000005" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="item %&apos;x&apos; %&apos;y&apos; of table %&apos;t&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">1</input><input type="%l"></input></inputs><script><block s="doReport"><block s="reportListItem"><block var="x"/><block s="reportListItem"><block var="y"/><block var="t"/></block></block></block></script></block-definition><block-definition s="set item %&apos;x&apos; %&apos;y&apos; of table %&apos;t&apos; to %&apos;v&apos;" type="command" category="lists"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">1</input><input type="%l"></input><input type="%s"></input></inputs><script><block s="doReplaceInList"><block var="x"/><block s="reportListItem"><block var="y"/><block var="t"/></block><block var="v"/></block></script></block-definition><block-definition s="table of %&apos;v&apos; width %&apos;w&apos; height %&apos;h&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%s">0</input><input type="%n">2</input><input type="%n">2</input></inputs><script><block s="doReport"><block s="reportReshape"><block s="reportMap"><block s="reifyReporter"><autolambda><block var="v"/></autolambda><list></list></block><block s="reportNumbers"><l>1</l><block s="reportProduct"><block var="w"/><block var="h"/></block></block></block><list><block var="h"/><block var="w"/></list></block></block></script></block-definition><block-definition s="square at %&apos;_x&apos; %&apos;_y&apos; with size %&apos;w&apos; %&apos;h&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input><input type="%n"></input><input type="%n"></input></inputs><script><block s="setSize"><block var="h"/></block><block s="gotoXY"><block var="_x"/><block s="reportSum"><block var="_y"/><block s="reportQuotient"><block var="h"/><l>2</l></block></block></block><block s="down"></block><block s="changeXPosition"><block var="w"/></block><block s="up"></block></script></block-definition><block-definition s="draw %&apos;x&apos; %&apos;y&apos; of world" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doDeclareVariables"><list><l>color</l></list></block><block s="doSetVar"><l>color</l><block s="reportListItem"><block s="reportSum"><block s="reportListIndex"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><block var="cell colors"/></block><l>1</l></block><block var="cell colors"/></block></block><block s="setPenHSVA"><l><option>hue</option></l><block s="reportListItem"><l>1</l><block var="color"/></block></block><block s="setPenHSVA"><l><option>saturation</option></l><block s="reportListItem"><l>2</l><block var="color"/></block></block><block s="setPenHSVA"><l><option>brightness</option></l><block s="reportListItem"><l>3</l><block var="color"/></block></block><custom-block s="square at %n %n with size %n %n"><block s="reportRound"><block s="reportSum"><l>-240</l><block s="reportProduct"><block s="reportDifference"><block var="x"/><l>1</l></block><block var="cell width"/></block></block></block><block s="reportRound"><block s="reportSum"><l>-180</l><block s="reportProduct"><block s="reportDifference"><block var="y"/><l>1</l></block><block var="cell height"/></block></block></block><block var="cell width"/><block var="cell height"/></custom-block></script></block-definition><block-definition s="physics update %&apos;x&apos; %&apos;y&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doDeclareVariables"><list><l>new x</l><l>new y</l><l>new type</l><l>change</l><l>proc</l></list></block><block s="doSetVar"><l>new type</l><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block></block><block s="doSetVar"><l>proc</l><block s="reportAtomicFindFirst"><block s="reifyPredicate"><autolambda><block s="reportEquals"><block s="reportListItem"><l>1</l><l/></block><block var="new type"/></block></autolambda><list></list></block><block var="update procs"/></block></block><block s="doIfElse"><block s="reportNotEquals"><block var="proc"/><l></l></block><script><block s="doSetVar"><l>change</l><block s="evaluate"><block s="reportListItem"><l>2</l><block var="proc"/></block><list><block var="x"/><block var="y"/></list></block></block></script><script><block s="doStopThis"><l><option>this block</option></l></block></script></block><block s="doIfElse"><block s="reportAnd"><block s="reportEquals"><block s="reportListItem"><l>1</l><block var="change"/></block><l>0</l></block><block s="reportEquals"><block s="reportListItem"><l>2</l><block var="change"/></block><l>0</l></block></block><script><block s="doIf"><block s="reportAnd"><block s="reportGreaterThan"><block s="reportListAttribute"><l><option>length</option></l><block var="change"/></block><l>2</l></block><block s="reportListItem"><l>3</l><block var="change"/></block></block><script><custom-block s="queue update %n %n"><block var="x"/><block var="y"/></custom-block></script></block></script><script><custom-block s="set item %n %n of table %l to %s"><block var="x"/><block var="y"/><block var="world"/><custom-block s="item %n %n of table %l"><block s="reportSum"><block var="x"/><block s="reportListItem"><l>1</l><block var="change"/></block></block><block s="reportSum"><block var="y"/><block s="reportListItem"><l>2</l><block var="change"/></block></block><block var="world"/></custom-block></custom-block><custom-block s="set item %n %n of table %l to %s"><block s="reportSum"><block var="x"/><block s="reportListItem"><l>1</l><block var="change"/></block></block><block s="reportSum"><block var="y"/><block s="reportListItem"><l>2</l><block var="change"/></block></block><block var="world"/><block var="new type"/></custom-block><custom-block s="queue update %n %n"><block var="x"/><block var="y"/></custom-block><custom-block s="queue update %n %n"><block s="reportSum"><block var="x"/><block s="reportListItem"><l>1</l><block var="change"/></block></block><block s="reportSum"><block var="y"/><block s="reportListItem"><l>2</l><block var="change"/></block></block></custom-block><custom-block s="queue update %n %n"><block s="reportDifference"><block var="x"/><l>1</l></block><block var="y"/></custom-block><custom-block s="queue update %n %n"><block s="reportSum"><block var="x"/><l>1</l></block><block var="y"/></custom-block><custom-block s="queue update %n %n"><block var="x"/><block s="reportSum"><block var="y"/><l>1</l></block></custom-block><custom-block s="queue update %n %n"><block var="x"/><block s="reportDifference"><block var="y"/><l>1</l></block></custom-block></script></block></script></block-definition><block-definition s="queue update %&apos;x&apos; %&apos;y&apos;" type="command" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="doIf"><block s="reportNot"><block s="reportListContainsItem"><block var="world updates"/><block s="reportNewList"><list><block var="x"/><block var="y"/></list></block></block></block><script><block s="doAddToList"><block s="reportNewList"><list><block var="x"/><block var="y"/></list></block><block var="world updates"/></block></script></block></script></block-definition><block-definition s="%&apos;x&apos; %&apos;y&apos; of world is a %&apos;type&apos;" type="predicate" category="other"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input><input type="%s" readonly="true"><options>air&#xD;liquid&#xD;air or liquid&#xD;solid&#xD;noncollidable for oil</options></input></inputs><script><block s="doIf"><block s="reportEquals"><block var="type"/><l>liquid</l></block><script><block s="doReport"><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>water</l></block><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>oil</l></block></block></block></script></block><block s="doIf"><block s="reportEquals"><block var="type"/><l>air</l></block><script><block s="doReport"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>empty</l></block></block></script></block><block s="doIf"><block s="reportEquals"><block var="type"/><l>noncollidable for oil</l></block><script><block s="doReport"><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>empty</l></block><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>water</l></block></block></block></script></block><block s="doIf"><block s="reportEquals"><block var="type"/><l>air or liquid</l></block><script><block s="doReport"><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>empty</l></block><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>water</l></block><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>oil</l></block></block></block></block></script></block><block s="doIf"><block s="reportEquals"><block var="type"/><l>solid</l></block><script><block s="doReport"><block s="reportOr"><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>sand</l></block><block s="reportEquals"><custom-block s="item %n %n of table %l"><block var="x"/><block var="y"/><block var="world"/></custom-block><l>wall</l></block></block></block></script></block></script></block-definition></blocks><variables><variable name="world width" transient="true"/><variable name="world height" transient="true"/><variable name="world" transient="true"/><variable name="cell width" transient="true"/><variable name="cell height" transient="true"/><variable name="cell colors" transient="true"/><variable name="mouse grid x" transient="true"/><variable name="mouse grid y" transient="true"/><variable name="world updates" transient="true"/><variable name="mouse block"><l>sand</l></variable><variable name="update procs" transient="true"/><variable name="ms" transient="true"/></variables></project><media name="sand box" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>