<snapdata remixID="8918892"><project name="U2L4-brickwall" app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAEFElEQVR4nO3Vz2vbdRzH8fwPosjcDgNBEEV2FTytUhjoQR3uIEzmwfMuY/5A8KBl5FQ8lJYyViSHtkzxsKRJoStEvhHyBdmSjdWSFhlzGz3IfqVJk+bloXy/JFZtCk1eX+zzAW++zTffb/Lh+3mSpgQYpdwLwOFGgLBKfIDZbFZra2taX19nBjjlclmLi4tD399EB7iystL3rP36s8JPXtSD80eZfczD80dV/+O3+DnOz88PdY8TG+DS0pIqlYoqlYpmZmZUqVSUy+V2nYvmh88+ULtWkiQ9uXBsz2ndvNb3tZK0ffeGtsqz//h+48cv+jrfXPpO2/duxa/3s979TL/r6X4W0XOsVqtD3efEBpjJZBSGocIw1PT0tFKplGq1mhqNhnK5nIrFoorFosbGxhSGoa5efD/e0Prls3p26S1tXjmnrfJsHE53QJtXzkntppoLl3qu7b6nfed6HGAzn47vb+bT2vz+0/j96PX23Rs939PMp+PjVnlW2/duqXV7cVeA/ay3+1z0Pc18Ws18Wu071+N791pPdL77c1o3r8XPOgzDoe5zYgNcWFhQEAQKgkATExOqVquq1WpKpVIKgkDFYlGjo6NqtVoKgkBXL76ndq2kJxeOqX75rJ5+/YY6jac7oUk9x51NmZOkXddGx78HFm2kpJ1ju9kTaOfZn6pPfhi/jr4vur6ZT6tdK6nz6H78K7if9UZ/dx4/jN/bKs+q8+iB6tMfxffutZ7ofPQ5UYDRsy6VSoPYzn+V2AAlaXl5+T+n+5r7v/x04P/KDss8/v12/BwnJyeHuseJDlCSpqamlM/nVSgUmAHO3NycMpnM0Pc38QHi/40AYUWAsCJAWCUywG+Oj+jM868rm826l4IBS2SAkjT+0tsaPzISz7vHT2hjY8O9LBywxAYoqSfA7km/ckqnTrzpXh4OQGIDPP3Ca7vCO/3cqyoUCu6l4QAlMsCPT76j8SMj+vLlk/r286/cy8EAJS7A1dVV9xIwRIkLEIcLAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLAiQFgRIKwIEFYECCsChBUBwooAYUWAsCJAWBEgrAgQVgQIKwKEFQHCigBhRYCwIkBYESCsCBBWBAgrAoQVAcKKAGFFgLD6C45CQDsf8xy/AAAAAElFTkSuQmCC</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" volume="100" pan="0" lines="flat" ternary="true" codify="false" inheritance="false" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAACtUlEQVR4nO3BMQEAAADCoPVPbQwfoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA+Bo3+AAF/RMkcAAAAAElFTkSuQmCC</pentrails><costumes><list struct="atomic" id="2"></list></costumes><sounds><list struct="atomic" id="3"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites><watcher var="rows" style="normal" x="10" y="10" color="243,118,29" extX="80" extY="70" hidden="true"/><sprite name="Sprite" idx="1" x="-100" y="130" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="145,26,68,1" pen="tip" id="9"><costumes><list struct="atomic" id="10"></list></costumes><sounds><list struct="atomic" id="11"></list></sounds><blocks></blocks><variables></variables><scripts><script x="251" y="594"><block var="useranswer"/></script><script x="107" y="335"><block s="receiveGo"></block><block s="doAsk"><l>how many rows?</l></block><block s="doSetVar"><l>useranswer</l><block s="getLastAnswer"></block></block><custom-block s="draw brick wall with %n walls"><block var="useranswer"/></custom-block></script><script x="391" y="325"><block s="receiveKey"><l><option>space</option></l></block><block s="gotoXY"><l>-100</l><l>130</l></block><block s="clear"></block><block s="doStopThis"><l><option>all</option></l></block></script><script x="342" y="106"><block s="doSetVar"><l>Help</l><l>Press Green Flag to start!, Press space to stop</l></block></script><script x="717" y="518"><custom-block s="draw brick, length: %n width: %n"><l></l><l></l></custom-block></script></scripts></sprite><watcher var="useranswer" style="normal" x="10" y="103.000002" color="243,118,29" hidden="true"/><watcher var="Help" style="normal" x="115" y="9.00000399999999" color="243,118,29"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="set flag %&apos;which&apos; to %&apos;tf&apos;" type="command" category="sensing"><header></header><code></code><translations></translations><inputs><input type="%s" readonly="true"><options>Presentation mode&#xD;Retina display support&#xD;Long form input dialog&#xD;Plain prototype labels&#xD;Input sliders&#xD;Execute on slider change&#xD;Clicking sound&#xD;Turbo mode&#xD;Flat design&#xD;Keyboard editing&#xD;Table support&#xD;Table lines&#xD;Visible stepping&#xD;Thread safe scripts&#xD;Prefer smooth animations&#xD;Flat line ends&#xD;Codification support&#xD;Inheritance support</options></input><input type="%b"></input></inputs><script><block s="doRun"><block s="reportJSFunction"><list><l>which</l><l>tf</l></list><l>var   stage = this.parentThatIsA(StageMorph),&#xD;        ide = stage.parentThatIsA(IDE_Morph),&#xD;        world = stage.parentThatIsA(WorldMorph);&#xD;&#xD;if (tf != !!tf) return;&#xD;&#xD;try{&#xD;ide.savingPreferences = false;&#xD;&#xD;switch (which) {&#xD;    case &apos;Presentation mode&apos;:&#xD;        if (tf != ide.isAppMode) ide.toggleAppMode();&#xD;        break;&#xD;    case &apos;Retina display support&apos;:&#xD;        if (tf != isRetinaEnabled()) ide.toggleRetina();&#xD;        break;&#xD;    case &apos;Long form input dialog&apos;:&#xD;        if (tf != InputSlotDialogMorph.prototype.isLaunchingExpanded)&#xD;            ide.toggleLongFormInputDialog();&#xD;        break;&#xD;    case &apos;Plain prototype labels&apos;:&#xD;        if (tf != BlockLabelPlaceHolderMorph.prototype.plainLabel)&#xD;            ide.togglePlainPrototypeLabels();&#xD;        break;&#xD;    case &apos;Input sliders&apos;:&#xD;        MorphicPreferences.useSliderForInput = tf;&#xD;        break;&#xD;    case &apos;Execute on slider change&apos;:&#xD;        ArgMorph.prototype.executeOnSliderEdit = tf;&#xD;        break;&#xD;    case &apos;Clicking sound&apos;:&#xD;        if (tf != !!BlockMorph.prototype.snapSound)&#xD;            BlockMorph.prototype.toggleSnapSound();&#xD;        break;&#xD;    case &apos;Turbo mode&apos;:&#xD;        if (tf != stage.isFastTracked)&#xD;            ide.toggleFastTracking();&#xD;        break;&#xD;    case &apos;Flat design&apos;:&#xD;        if (tf == MorphicPreferences.isFlat) break;&#xD;        if (tf)&#xD;            ide.flatDesign();&#xD;        else&#xD;            ide.defaultDesign();&#xD;        break;&#xD;    case &apos;Keyboard editing&apos;:&#xD;            ScriptsMorph.prototype.enableKeyboard = tf;&#xD;        break;&#xD;    case &apos;Table support&apos;:&#xD;            List.prototype.enableTables = tf;&#xD;        break;&#xD;    case &apos;Table lines&apos;:&#xD;                TableMorph.prototype.highContrast = tf;&#xD;        break;&#xD;    case &apos;Visible stepping&apos;:&#xD;        if (tf != Process.prototype.enableSingleStepping)&#xD;            ide.toggleSingleStepping();&#xD;        break;&#xD;    case &apos;Thread safe scripts&apos;:&#xD;        stage.isThreadSafe = tf;&#xD;        break;&#xD;    case &apos;Prefer smooth animations&apos;:&#xD;        if (tf != (StageMorph.prototype.frameRate &gt; 0))&#xD;            ide.toggleVariableFrameRate();&#xD;        break;&#xD;    case &apos;Flat line ends&apos;:&#xD;        SpriteMorph.prototype.useFlatLineEnds = tf;&#xD;        break;&#xD;    case &apos;Codification support&apos;:&#xD;        if (tf != StageMorph.prototype.enableCodeMapping) {&#xD;            StageMorph.prototype.enableCodeMapping = tf;&#xD;            ide.currentSprite.blocksCache.variables = null;&#xD;            ide.currentSprite.paletteCache.variables = null;&#xD;            ide.refreshPalette();&#xD;        }&#xD;        break;&#xD;    case &apos;Inheritance support&apos;:&#xD;        if (tf != StageMorph.prototype.enableInheritance) {&#xD;            StageMorph.prototype.enableInheritance = tf;&#xD;            ide.currentSprite.blocksCache.variables = null;&#xD;            ide.currentSprite.paletteCache.variables = null;&#xD;            ide.refreshPalette();&#xD;        }&#xD;        break;&#xD;};&#xD;}&#xD;finally {&#xD;ide.savingPreferences = false;&#xD;};&#xD;</l></block><list><block var="which"/><block var="tf"/></list></block></script></block-definition><block-definition s="draw brick, length: %&apos;length&apos; width: %&apos;width&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"></input><input type="%n"></input></inputs><script><block s="setColor"><color>145,26,68,1</color></block><custom-block s="set flat line ends to %b"><block s="reportBoolean"><l><bool>true</bool></l></block></custom-block><block s="setSize"><block var="width"/></block><block s="down"></block><block s="forward"><block var="length"/></block><block s="up"></block></script></block-definition><block-definition s="set flat line ends to %&apos;flag&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%b"></input></inputs><script><custom-block s="set flag %s to %b"><l>Flat line ends</l><block var="flag"/></custom-block></script></block-definition><block-definition s="rowA" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doRepeat"><l>6</l><script><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block><block s="forward"><l>4</l></block></script></block></script></block-definition><block-definition s="rowB" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><custom-block s="draw brick, length: %n width: %n"><l>15</l><l>10</l></custom-block><block s="forward"><l>4</l></block><block s="doRepeat"><l>5</l><script><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block><block s="forward"><l>3</l></block></script></block><custom-block s="draw brick, length: %n width: %n"><l>15</l><l>10</l></custom-block><block s="forward"><l>4</l></block></script></block-definition><block-definition s="draw brick wall with %&apos;parameter&apos; walls" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n"></input></inputs><script><block s="doSetVar"><l>rows</l><block s="reportNumbers"><l>1</l><block var="parameter"/></block></block><block s="doForEach"><l>item</l><block var="rows"/><script><block s="doIfElse"><block s="reportEquals"><block s="reportModulus"><block var="item"/><l>2</l></block><l>0</l></block><script><custom-block s="rowB"></custom-block><block s="setYPosition"><block s="reportSum"><block s="yPosition"></block><l>-15</l></block></block><block s="setXPosition"><l>-100</l></block></script><script><custom-block s="rowA"></custom-block><block s="setYPosition"><block s="reportSum"><block s="yPosition"></block><l>-15</l></block></block><block s="setXPosition"><l>-100</l></block></script></block></script></block></script></block-definition></blocks><variables><variable name="rows"><list struct="atomic" linked="linked" id="150">1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100</list></variable><variable name="useranswer"><l>100</l></variable><variable name="Help"><l>Press Green Flag to start!, Press space to stop</l></variable></variables></project><media name="U2L4-brickwall" app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>