<snapdata remixID="13456217"><project name="Map Gen" app="Snap! 9.0, https://snap.berkeley.edu" version="2"><notes></notes><thumbnail>data:image/png;base64,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</thumbnail><scenes select="1"><scene name="Map Gen"><notes></notes><palette><category name="Map Gen" color="0,105,30,1"/></palette><hidden></hidden><headers></headers><code></code><blocks><block-definition s="%&apos;xSize&apos; by %&apos;ySize&apos; random map" type="reporter" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%n">10</input><input type="%n">10</input></inputs><script><block s="doReport"><custom-block s="tree map %repRing over %l"><block s="reifyReporter"><autolambda><block s="reportQuotient"><block s="reportRandom"><l>0</l><l>100</l></block><l>100</l></block></autolambda><list></list></block><block s="reportReshape"><block s="reportNewList"><list><l></l></list></block><list><block var="xSize"/><block var="ySize"/></list></block></custom-block></block></script></block-definition><block-definition s="tree map %&apos;ring&apos; over %&apos;list&apos;" type="reporter" category="lists"><header></header><code></code><translations></translations><inputs><input type="%repRing"></input><input type="%l"></input></inputs><script><block s="doIfElse"><block s="reportIsA"><block var="list"/><l><option>list</option></l></block><script><block s="doReport"><block s="reportMap"><block s="reifyReporter"><autolambda><custom-block s="tree map %repRing over %l"><block var="ring"/><l/></custom-block></autolambda><list></list></block><block var="list"/></block></block></script><script><block s="doReport"><block s="evaluate"><block var="ring"/><list><block var="list"/></list></block></block></script></block></script></block-definition><block-definition s="image of map %&apos;list&apos; with a cutoff at %&apos;cutoff&apos;" type="reporter" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n">0.44</input></inputs><script><block s="doReport"><block s="reportNewCostume"><block s="reportAtomicMap"><block s="reifyReporter"><autolambda><block s="reportIfElse"><block s="reportVariadicLessThan"><list><l></l><block var="cutoff"/></list></block><block s="reportNewList"><list><block s="reportVariadicProduct"><list><l></l><l>40</l></list></block><block s="reportVariadicProduct"><list><l></l><l>300</l></list></block><block s="reportVariadicProduct"><list><l></l><l>400</l></list></block><l>255</l></list></block><block s="reportIfElse"><block s="reportVariadicLessThan"><list><l></l><block s="reportVariadicSum"><list><block var="cutoff"/><l>0.01</l></list></block></list></block><block s="reportNewList"><list><block s="reportVariadicProduct"><list><l></l><l>490</l></list></block><block s="reportVariadicProduct"><list><l></l><l>460</l></list></block><block s="reportVariadicProduct"><list><l></l><l>290</l></list></block><l>255</l></list></block><block s="reportNewList"><list><block s="reportVariadicProduct"><list><l></l><l>67</l></list></block><block s="reportVariadicProduct"><list><l></l><l>255</l></list></block><block s="reportVariadicProduct"><list><l></l><l>65</l></list></block><l>255</l></list></block></block></block></autolambda><list></list></block><block s="reportListAttribute"><l><option>flatten</option></l><block var="list"/></block></block><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="list"/></block></block><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block></block></block></script></block-definition><block-definition s="cell-by-cell average %&apos;list&apos;" type="reporter" category="Map Gen"><comment x="0" y="0" w="90" collapsed="false">Makes the values more clean and less noisy</comment><header></header><code></code><translations></translations><inputs><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>listNew</l></list></block><block s="doSetVar"><l>listNew</l><block s="reportNewList"><list></list></block></block><block s="doWarp"><script><block s="doFor"><l>i</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block><script><block s="doDeclareVariables"><list><l>listRow</l></list></block><block s="doSetVar"><l>listRow</l><block s="reportNewList"><list></list></block></block><block s="doFor"><l>j</l><l>1</l><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="list"/></block></block><script><block s="doAddToList"><custom-block s="average of neighbours of cell %n %n in %l"><block var="j"/><block var="i"/><block var="list"/></custom-block><block var="listRow"/></block></script></block><block s="doAddToList"><block var="listRow"/><block var="listNew"/></block></script></block></script></block><block s="doReport"><block var="listNew"/></block></script></block-definition><block-definition s="average %&apos;L&apos;" type="reporter" category="operators"><header></header><code></code><translations></translations><inputs><input type="%mult%n"></input></inputs><script><block s="doReport"><block s="reportQuotient"><block s="reportVariadicSum"><block var="L"/></block><block s="reportListAttribute"><l><option>length</option></l><block var="L"/></block></block></block></script></block-definition><block-definition s="average of neighbours of cell %&apos;x&apos; %&apos;y&apos; in %&apos;list&apos;" type="reporter" category="Map Gen" helper="true"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input><input type="%l"></input></inputs><script><block s="doDeclareVariables"><list><l>l1</l></list></block><block s="doSetVar"><l>l1</l><block s="reportNewList"><list></list></block></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="x"/><l>1</l></list></block><script><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><l>1</l></list></block><script><block s="doAddToList"><block s="reportListItem"><block s="reportDifference"><block var="x"/><l>1</l></block><block s="reportListItem"><block s="reportDifference"><block var="y"/><l>1</l></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block><block s="doAddToList"><block s="reportListItem"><block s="reportDifference"><block var="x"/><l>1</l></block><block s="reportListItem"><block var="y"/><block var="list"/></block></block><block var="l1"/></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block></list></block><script><block s="doAddToList"><block s="reportListItem"><block s="reportDifference"><block var="x"/><l>1</l></block><block s="reportListItem"><block s="reportVariadicSum"><list><block var="y"/><l>1</l></list></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block></script><list></list></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><l>1</l></list></block><script><block s="doAddToList"><block s="reportListItem"><block var="x"/><block s="reportListItem"><block s="reportDifference"><block var="y"/><l>1</l></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block></list></block><script><block s="doAddToList"><block s="reportListItem"><block var="x"/><block s="reportListItem"><block s="reportVariadicSum"><list><block var="y"/><l>1</l></list></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="x"/><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="list"/></block></block></list></block><script><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><l>1</l></list></block><script><block s="doAddToList"><block s="reportListItem"><block s="reportVariadicSum"><list><block var="x"/><l>1</l></list></block><block s="reportListItem"><block s="reportDifference"><block var="y"/><l>1</l></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block><block s="doAddToList"><block s="reportListItem"><block s="reportVariadicSum"><list><block var="x"/><l>1</l></list></block><block s="reportListItem"><block var="y"/><block var="list"/></block></block><block var="l1"/></block><block s="doIf"><block s="reportVariadicNotEquals"><list><block var="y"/><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block></list></block><script><block s="doAddToList"><block s="reportListItem"><block s="reportVariadicSum"><list><block var="x"/><l>1</l></list></block><block s="reportListItem"><block s="reportVariadicSum"><list><block var="y"/><l>1</l></list></block><block var="list"/></block></block><block var="l1"/></block></script><list></list></block></script><list></list></block><block s="doReport"><custom-block s="average %mult%n"><block var="l1"/></custom-block></block></script></block-definition><block-definition s="height at %&apos;x&apos; %&apos;y&apos;" type="reporter" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">1</input></inputs><script><block s="doReport"><block s="reportListItem"><block var="x"/><block s="reportListItem"><block var="y"/><block var="map"/></block></block></block></script></block-definition><block-definition s="set %&apos;x&apos; %&apos;y&apos; to %&apos;height&apos;" type="command" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">1</input><input type="%n">0.5</input></inputs><script><block s="doReplaceInList"><block var="x"/><block s="reportListItem"><block var="y"/><block var="map"/></block><block var="height"/></block></script></block-definition><block-definition s="ask %&apos;question&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s">what&apos;s your name?</input></inputs><script><block s="doAsk"><block var="question"/></block><block s="doReport"><block s="getLastAnswer"></block></block></script></block-definition><block-definition s="notify %&apos;message&apos;" type="command" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s">Alert!</input></inputs><script><block s="doTellTo"><block s="reportGet"><l><option>stage</option></l></block><block s="reifyScript"><script><block s="doAsk"><block s="reportNewList"><list><block s="reportApplyExtension"><l>ide_translate(text)</l><list><block var="message"/></list></block><block s="reportNewList"><list><block s="reportApplyExtension"><l>ide_translate(text)</l><list><l>Ok</l></list></block></list></block></list></block></block></script><list></list></block><list></list></block></script></block-definition><block-definition s="prompt %&apos;title&apos; options %&apos;options&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s">choose!</input><input type="%mult%s"></input></inputs><script><block s="doReport"><custom-block s="ask %s"><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="title"/><l></l></list></block><block var="options"/><block s="reportNewList"><list><block s="reportApplyExtension"><l>ide_translate(text)</l><list><block var="title"/></list></block><block var="options"/></list></block></block></custom-block></block></script></block-definition><block-definition s="submenu %&apos;title&apos; items %&apos;items&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s">title</input><input type="%mult%s"></input></inputs><script><block s="doReport"><block s="reportNewList"><list><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="title"/><l></l></list></block><l>menu</l><block s="reportApplyExtension"><l>ide_translate(text)</l><list><block var="title"/></list></block></block><block var="items"/></list></block></block></script></block-definition><block-definition s="divider" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><block s="reportNewList"><list></list></block></block></script></block-definition><block-definition s="menu item icon %&apos;icon&apos; label %&apos;text&apos; value %&apos;value&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s" readonly="true"><options>§_objectsMenu</options></input><input type="%s">option</input><input type="%s"></input></inputs><script><block s="doReport"><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="icon"/><l></l></list></block><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="text"/><l></l></list></block><block var="value"/><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="value"/><l></l></list></block><block var="text"/><block s="reportNewList"><list><block var="text"/><block var="value"/></list></block></block></block><block s="reportNewList"><list><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="text"/><l></l></list></block><block s="reportIfElse"><block s="reportIsA"><block var="icon"/><l><option>text</option></l></block><block s="reportObject"><block var="icon"/></block><block var="icon"/></block><block s="reportNewList"><list><block s="reportIfElse"><block s="reportIsA"><block var="icon"/><l><option>text</option></l></block><block s="reportObject"><block var="icon"/></block><block var="icon"/></block><block var="text"/></list></block></block><block var="value"/></list></block></block></block></script></block-definition><block-definition s="menu item speech ballon %&apos;orientation&apos; message %&apos;message&apos; value %&apos;value&apos;" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s" readonly="true">left<options>left&#xD;right</options></input><input type="%s">hey!</input><input type="%s"></input></inputs><script><block s="doReport"><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="value"/><l></l></list></block><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="orientation"/><l>right</l></list></block><block s="reportNewList"><list><l></l><block var="message"/></list></block><block s="reportNewList"><list><block var="message"/></list></block></block><block s="reportNewList"><list><block s="reportIfElse"><block s="reportVariadicEquals"><list><block var="orientation"/><l>right</l></list></block><block s="reportNewList"><list><l></l><block var="message"/></list></block><block s="reportNewList"><list><block var="message"/></list></block></block><block var="value"/></list></block></block></block></script></block-definition><block-definition s="menu examples" type="command" category="sensing"><comment x="0" y="0" w="212" collapsed="false">open my definition to look at examples how to use the menu blocks</comment><header></header><code></code><translations></translations><inputs></inputs><scripts><script x="10" y="79.00000000000001"><block s="doAsk"><l>what&apos;s your name?</l></block></script><script x="10" y="118.00000000000001"><custom-block s="ask %s"><l>what&apos;s your name?</l></custom-block></script><script x="10" y="151"><custom-block s="notify %s"><l>Alert!</l></custom-block></script><script x="10" y="190"><custom-block s="prompt %s options %mult%s"><l>choose!</l><list><l>foo</l><l>bar</l><l>baz</l></list></custom-block></script><script x="10" y="223"><custom-block s="prompt %s options %mult%s"><l>choose!</l><block s="reportGet"><l><option>costumes</option></l></block></custom-block></script><script x="10" y="261"><custom-block s="submenu %s items %mult%s"><l>more</l><list><l>frob</l><l>quux</l><l>garply</l></list></custom-block></script><script x="10" y="294"><custom-block s="prompt %s options %mult%s"><l>choose!</l><list><l>foo</l><l>bar</l><custom-block s="divider"></custom-block><custom-block s="submenu %s items %mult%s"><l>more</l><list><l>frob</l><custom-block s="submenu %s items %mult%s"><l></l><list><l>fred</l><l>test</l></list></custom-block><custom-block s="divider"></custom-block><l>quux</l><l>garply</l></list></custom-block><l>baz</l></list></custom-block></script><script x="10" y="377.8333333333334"><custom-block s="menu item icon %s label %s value %s"><l></l><l>option</l><l></l></custom-block></script><script x="10" y="411.8333333333334"><custom-block s="prompt %s options %mult%s"><l>choose!</l><list><custom-block s="menu item icon %s label %s value %s"><l>monkey</l><l>monkey</l><block s="reportObject"><l>monkey</l></block></custom-block><custom-block s="menu item icon %s label %s value %s"><l>Octo</l><l></l><l>42</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>choice</l><l>yay!</l></custom-block><custom-block s="divider"></custom-block><custom-block s="submenu %s items %mult%s"><l>more</l><list><custom-block s="menu item icon %s label %s value %s"><l>Alonzo</l><l>Alonzo</l><block s="reportObject"><l>Alonzo</l></block></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>foo</l><l>bar</l></custom-block></list></custom-block></list></custom-block></script><script x="10" y="565.8333333333335"><custom-block s="menu item speech ballon %s message %s value %s"><l>left</l><l>hey!</l><l></l></custom-block></script><script x="10" y="599.8333333333335"><custom-block s="prompt %s options %mult%s"><l>choose!</l><list><custom-block s="menu item speech ballon %s message %s value %s"><l>left</l><l>hey!</l><l></l></custom-block><custom-block s="menu item speech ballon %s message %s value %s"><l>right</l><l>wassup?</l><l></l></custom-block><custom-block s="menu item speech ballon %s message %s value %s"><l>left</l><block s="reportObject"><l>Alonzo</l></block><l></l></custom-block><custom-block s="menu item speech ballon %s message %s value %s"><l>right</l><l>so?</l><block s="reportGet"><l><option>costumes</option></l></block></custom-block></list></custom-block></script></scripts></block-definition><block-definition s="%&apos;x&apos; %&apos;y&apos; to %&apos;x1&apos; %&apos;y1&apos; of %&apos;list&apos;" type="reporter" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%n">1</input><input type="%n">1</input><input type="%n">5</input><input type="%n">5</input><input type="%l"></input></inputs><script><block s="doReport"><block s="reportMap"><block s="reifyReporter"><autolambda><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportVariadicAnd"><list><block s="reportVariadicLessThanOrEquals"><list><block var="x"/><block var="index"/></list></block><block s="reportVariadicLessThanOrEquals"><list><block var="index"/><block var="x1"/></list></block></list></block></autolambda><list><l>value</l><l>index</l></list></block><l/></block></autolambda><list></list></block><block s="reportKeep"><block s="reifyPredicate"><autolambda><block s="reportVariadicAnd"><list><block s="reportVariadicLessThanOrEquals"><list><block var="y"/><block var="index"/></list></block><block s="reportVariadicLessThanOrEquals"><list><block var="index"/><block var="y1"/></list></block></list></block></autolambda><list><l>value</l><l>index</l></list></block><block var="list"/></block></block></block></script></block-definition><block-definition s="safely try %&apos;action&apos; then if %&apos;error&apos; %&apos;handler&apos;" type="command" category="control"><comment x="0" y="0" w="276" collapsed="false">Catch errors.&#xD;&#xD;Runs the first script.  If it succeeds, nothing else happens.&#xD;But if it has an error (something that would otherwise result&#xD;in a red halo around the block), then the second script is run,&#xD;with the text of the error message that would have been shown in the variable ERROR.</comment><header></header><code></code><translations>pt:tenta executar _ e, em caso de erro _ , executa _&#xD;ca:prova de forma segura _ i si _ _&#xD;</translations><inputs><input type="%cs"></input><input type="%upvar"></input><input type="%cs"></input></inputs><script><block s="doApplyExtension"><l>err_try(cmd, catch, err)</l><list><block var="action"/><block var="handler"/><block var="error"/></list></block><block s="doApplyExtension"><l>err_reset</l><list></list></block></script></block-definition><block-definition s="error %&apos;msg&apos;" type="command" category="control"><comment x="0" y="0" w="268.6666666666667" collapsed="false">Throw an error.&#xD;&#xD;Makes a red halo appear around the script that runs it,&#xD;with the input text shown in a speech balloon next to&#xD;the script, just like any Snap! error.&#xD;&#xD;This is useful to put in the second script of SAFELY TRY&#xD;after some other instructions to undo the partial work of&#xD;the first script.</comment><header></header><code></code><translations>pt:lança o erro _&#xD;</translations><inputs><input type="%txt"></input></inputs><script><block s="doApplyExtension"><l>err_error(msg)</l><list><block var="msg"/></list></block></script></block-definition><block-definition s="safely try reporting %&apos;this&apos; then if %&apos;error&apos; report %&apos;that&apos;" type="reporter" category="control"><comment x="0" y="0" w="316.6666666666667" collapsed="false">Catch errors in a reporter.&#xD;&#xD;Evaluates its first input.  If that expression successfully reports a value, this block reports that value.  If the expression causes a Snap! error,&#xD;then the final input slot is evaluated with the text of what would have&#xD;been the error message in variable ERROR.  SAFELY TRY then reports the value of that final expression.&#xD;&#xD;Sometimes you&apos;ll want to throw an error in the final expression.  You&#xD;can put an ERROR block inside a CALL block to do that.</comment><header></header><code></code><translations>ca:prova de forma segura reportant _ i si _ reportant _&#xD;</translations><inputs><input type="%anyUE"></input><input type="%upvar"></input><input type="%anyUE"></input></inputs><script><block s="doDeclareVariables"><list><l>value</l></list></block><custom-block s="safely try %cs then if %upvar %cs"><script><block s="doSetVar"><l>value</l><block s="evaluate"><block var="this"/><list></list></block></block></script><l>err</l><script><block s="doSetVar"><l>error</l><block var="err"/></block><block s="doSetVar"><l>value</l><block s="evaluate"><block var="that"/><list></list></block></block></script></custom-block><block s="doReport"><block var="value"/></block></script></block-definition><block-definition s="collision of map %&apos;list&apos; with a cutoff at %&apos;cutoff&apos;" type="reporter" category="Map Gen"><header></header><code></code><translations></translations><inputs><input type="%l"></input><input type="%n">0.44</input></inputs><script><block s="doReport"><block s="reportNewCostume"><block s="reportAtomicMap"><block s="reifyReporter"><autolambda><block s="reportIfElse"><block s="reportVariadicLessThan"><list><l></l><block var="cutoff"/></list></block><block s="reportNewList"><list><l>0</l><l>0</l><l>0</l><l>255</l></list></block><block s="reportNewList"><list><l>0</l><l>0</l><l>0</l><l>0</l></list></block></block></autolambda><list></list></block><block s="reportListAttribute"><l><option>flatten</option></l><block var="list"/></block></block><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="list"/></block></block><block s="reportListAttribute"><l><option>length</option></l><block var="list"/></block></block></block></script></block-definition></blocks><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="1028"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAADoVJREFUeF7t1cEJAAAIxDDdf2m3sJ+4wEEQuuMIECBAgACBd4F9XzRIgAABAgQIjAB7AgIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+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+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+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+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECAiwHyBAgAABAoGAAAfoJgkQIECAgAD7AQIECBAgEAgIcIBukgABAgQICLAfIECAAAECgYAAB+gmCRAgQICAAPsBAgQIECAQCAhwgG6SAAECBAgIsB8gQIAAAQKBgAAH6CYJECBAgIAA+wECBAgQIBAICHCAbpIAAQIECByxcQFpoRMBzwAAAABJRU5ErkJggg==</pentrails><costumes><list struct="atomic" id="1029"></list></costumes><sounds><list struct="atomic" id="1030"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites select="1"><sprite name="Camera" idx="2" x="-66.88235294117635" y="0.5882352941175668" heading="90" scale="50" volume="100" pan="0" rotation="1" draggable="false" hidden="true" costume="0" color="13.923000000000012,99.45,0,1" pen="tip" id="1035"><wear><ref mediaID="1"></ref></wear><costumes><list struct="atomic" id="1036"></list></costumes><sounds><list struct="atomic" id="1037"></list></sounds><blocks></blocks><variables><variable name="x"><l>1</l></variable><variable name="y"><l>1</l></variable><variable name="size"><l>7</l></variable></variables><scripts><script x="30" y="30"><block s="receiveGo"></block><block s="doSetVar"><l>x</l><l>1</l></block><block s="doSetVar"><l>y</l><l>1</l></block><block s="doSetVar"><l>size</l><l>7</l></block><block s="hide"></block><block s="doWaitUntil"><block s="reportAttributeOf"><l>Generating?</l><l>The World</l></block></block><block s="doWaitUntil"><block s="reportNot"><block s="reportAttributeOf"><l>Generating?</l><l>The World</l></block></block></block><block s="show"></block><block s="doForever"><script><custom-block s="safely try %cs then if %upvar %cs"><script><block s="setScale"><block s="reportQuotient"><l>35000</l><block var="size"/></block></block><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><custom-block s="%n %n to %n %n of %l"><block var="x"/><block var="y"/><block s="reportVariadicSum"><list><block var="x"/><block s="reportDifference"><block var="size"/><l>1</l></block></list></block><block s="reportVariadicSum"><list><block var="y"/><block s="reportDifference"><block var="size"/><l>1</l></block></list></block><block var="map"/></custom-block><block s="reportQuotient"><block s="reportAttributeOf"><l>water level</l><l>The World</l></block><l>100</l></block></custom-block></block></script><l>error</l><script><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><block var="map"/><block s="reportQuotient"><block s="reportAttributeOf"><l>water level</l><l>The World</l></block><l>100</l></block></custom-block></block></script></custom-block><block s="doIf"><block s="reportVariadicAnd"><list><block s="reportKeyPressed"><l><option>w</option></l></block><block s="reportVariadicLessThan"><list><l>1</l><block var="y"/></list></block></list></block><script><block s="doChangeVar"><l>y</l><l>-1</l></block></script><list></list></block><block s="doIf"><block s="reportVariadicAnd"><list><block s="reportKeyPressed"><l><option>s</option></l></block><block s="reportVariadicLessThan"><list><block var="y"/><block s="reportDifference"><block s="reportListAttribute"><l><option>length</option></l><block var="map"/></block><block s="reportDifference"><block var="size"/><l>1</l></block></block></list></block></list></block><script><block s="doChangeVar"><l>y</l><l>1</l></block></script><list></list></block><block s="doIf"><block s="reportVariadicAnd"><list><block s="reportKeyPressed"><l><option>a</option></l></block><block s="reportVariadicLessThan"><list><l>1</l><block var="x"/></list></block></list></block><script><block s="doChangeVar"><l>x</l><l>-1</l></block></script><list></list></block><block s="doIf"><block s="reportVariadicAnd"><list><block s="reportKeyPressed"><l><option>d</option></l></block><block s="reportVariadicLessThan"><list><block var="x"/><block s="reportDifference"><block s="reportListAttribute"><l><option>length</option></l><block s="reportListItem"><l>1</l><block var="map"/></block></block><block s="reportDifference"><block var="size"/><l>1</l></block></block></list></block></list></block><script><block s="doChangeVar"><l>x</l><l>1</l></block></script><list></list></block></script></block></script></scripts></sprite><sprite name="Collision" idx="3" x="-66.88235294117635" y="0.5882352941175668" heading="90" scale="50" volume="100" pan="0" rotation="1" draggable="false" hidden="true" costume="0" color="13.923000000000012,99.45,0,1" pen="tip" id="1228"><nest anchor="Camera" synch="true"/><wear><ref mediaID="2"></ref></wear><costumes><list struct="atomic" id="1229"></list></costumes><sounds><list struct="atomic" id="1230"></list></sounds><blocks></blocks><variables><variable name="x"><l>1</l></variable><variable name="y"><l>1</l></variable><variable name="size"><l>7</l></variable></variables><scripts><script x="30" y="30"><block s="receiveGo"></block><block s="doSetVar"><l>x</l><l>1</l></block><block s="doSetVar"><l>y</l><l>1</l></block><block s="doSetVar"><l>size</l><l>7</l></block><block s="hide"></block><block s="doWaitUntil"><block s="reportAttributeOf"><l>Generating?</l><l>The World</l></block></block><block s="doWaitUntil"><block s="reportNot"><block s="reportAttributeOf"><l>Generating?</l><l>The World</l></block></block></block><block s="show"></block><block s="doForever"><script><block s="doSetVar"><l>y</l><block s="reportAttributeOf"><block s="reportJoinWords"><list><l>y</l></list></block><l>Camera</l></block></block><block s="doSetVar"><l>x</l><block s="reportAttributeOf"><block s="reportJoinWords"><list><l>x</l></list></block><l>Camera</l></block></block><block s="doSetVar"><l>size</l><block s="reportAttributeOf"><block s="reportJoinWords"><list><l>size</l></list></block><l>Camera</l></block></block><custom-block s="safely try %cs then if %upvar %cs"><script><block s="setEffect"><l><option>ghost</option></l><l>100</l></block><block s="setScale"><block s="reportQuotient"><l>35000</l><block var="size"/></block></block><block s="doSwitchToCostume"><custom-block s="collision of map %l with a cutoff at %n"><custom-block s="%n %n to %n %n of %l"><block var="x"/><block var="y"/><block s="reportVariadicSum"><list><block var="x"/><block s="reportDifference"><block var="size"/><l>1</l></block></list></block><block s="reportVariadicSum"><list><block var="y"/><block s="reportDifference"><block var="size"/><l>1</l></block></list></block><block var="map"/></custom-block><block s="reportQuotient"><block s="reportAttributeOf"><l>water level</l><l>The World</l></block><l>100</l></block></custom-block></block></script><l>error</l><script><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><block var="map"/><block s="reportQuotient"><block s="reportAttributeOf"><l>water level</l><l>The World</l></block><l>100</l></block></custom-block></block></script></custom-block></script></block></script></scripts></sprite><sprite name="The World" idx="1" x="177.17647058823536" y="-137.88235294117652" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,1" pen="tip" id="1349"><wear><ref mediaID="3"></ref></wear><costumes><list struct="atomic" id="1350"></list></costumes><sounds><list struct="atomic" id="1351"></list></sounds><blocks></blocks><variables><variable name="water level"><l>48</l></variable><variable name="Generating?"><bool>true</bool></variable></variables><scripts><script x="10" y="10"><block s="receiveGo"></block><block s="doSwitchToCostume"><l><option>Turtle</option></l></block><block s="setScale"><l>100</l></block><block s="doHideVar"><l>water level</l></block><block s="doRun"><block s="reifyReporter"><autolambda><custom-block s="prompt %s options %mult%s"><l>World Size</l><list><custom-block s="menu item icon %s label %s value %s"><l></l><l>Huge</l><l>5</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>Large</l><l>4</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>Medium</l><l>3</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>Small</l><l>2</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>Tiny</l><l>1</l></custom-block><custom-block s="menu item icon %s label %s value %s"><l></l><l>Miniscule</l><l>0.5</l></custom-block></list></custom-block></autolambda><list></list></block><list></list></block><block s="doSetGlobalFlag"><l><option>turbo mode</option></l><l><bool>false</bool></l></block><block s="doHideVar"><l></l></block><block s="doShowVar"><l>Generating?</l></block><block s="doSetVar"><l>Generating?</l><block s="reportBoolean"><l><bool>true</bool></l></block></block><block s="doSetVar"><l>map</l><custom-block s="%n by %n random map"><block s="reportVariadicProduct"><list><l>36</l><block s="getLastAnswer"></block></list></block><block s="reportVariadicProduct"><list><l>48</l><block s="getLastAnswer"></block></list></block></custom-block></block><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><block var="map"/><l>0</l></custom-block></block><block s="doFor"><l>i</l><l>1</l><l>4</l><script><block s="doSetVar"><l>map</l><custom-block s="cell-by-cell average %l"><block var="map"/></custom-block></block><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><block var="map"/><l>0</l></custom-block></block></script></block><block s="doSetVar"><l>Generating?</l><block s="reportBoolean"><l><bool>false</bool></l></block></block><block s="doHideVar"><l>Generating?</l></block><block s="doShowVar"><l>water level</l></block><block s="doForever"><script><block s="doWarp"><script><block s="goToLayer"><l><option>front</option></l></block><block s="doSwitchToCostume"><custom-block s="image of map %l with a cutoff at %n"><block s="reportIfElse"><block s="reportKeyPressed"><l><option>m</option></l></block><custom-block s="%n %n to %n %n of %l"><l>1</l><l>1</l><l>4</l><l>4</l><block var="map"/></custom-block><block var="map"/></block><block s="reportQuotient"><block var="water level"/><l>100</l></block></custom-block></block></script></block></script></block></script></scripts></sprite><watcher var="map" style="normal" x="321.00000000000045" y="162.00000000000006" color="243,118,29" hidden="true"/><watcher scope="Camera" var="x" style="normal" x="10" y="10" color="243,118,29" hidden="true"/><watcher scope="Camera" var="y" style="normal" x="10" y="31.000001999999995" color="243,118,29" hidden="true"/><watcher scope="The World" var="Generating?" style="normal" x="10" y="52.00000399999999" color="243,118,29"/><watcher scope="The World" var="water level" style="slider" min="0" max="100" x="355.00000000000045" y="6.0000000000001705" color="243,118,29" hidden="true"/><watcher scope="Collision" var="size" style="normal" x="10" y="97.00000800000004" color="243,118,29" hidden="true"/><watcher scope="Camera" var="size" style="slider" min="1" max="15" x="354" y="42.00000600000001" color="243,118,29"/></sprites></stage><variables><variable name="map"><list id="1501"><item><list id="1502"><item><l>NaN</l></item></list></item></list></variable></variables></scene></scenes></project><media name="Map Gen" app="Snap! 9.0, https://snap.berkeley.edu" version="2"><costume name="costume" center-x="3.5" center-y="3.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IArs4c6QAAAK1JREFUGFctjjsKwlAQRe/kg517SBBJYSEaXYjYWYhp/axBbIOVwToIdoKuQ1QQOyW4ACUbSPKuJM+pBubeM0fclUNmxDWYQ5HoxRHEEogtkG8SsnloAVQoRywbr+ED/i6CpO81G+UxzwAQMG2IXUM9nUA+SUjv2AbVv2kYeA7u8Eu8u3RY4kjiFixQFKravVNHY7vxBmJK9RNKBy/jmRbq77fa0BBQEcyJ82iKH4/VTBh39AWnAAAAAElFTkSuQmCC" mediaID="1"/><costume name="costume" center-x="3.5" center-y="3.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IArs4c6QAAACRJREFUGFdjZMADGKFy/9HUgMVxSYLliNKJzeb/MJ1YnYVXEgDZlwQHXAEtLQAAAABJRU5ErkJggg==" mediaID="2"/><costume name="costume" center-x="0.5" center-y="0.5" image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdjYGBg+A8AAQQBAHAgZQsAAAAASUVORK5CYII=" mediaID="3"/></media></snapdata>