<snapdata remixID="14032509"><project name="[Li_Cherish] - U2L12 - Brickwall" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAoKADAAQAAAABAAAAeAAAAAAeaS0RAAAENUlEQVR4Ae3Zv2oUURTH8RtxtbGzEbTIGwg2QX0DsREE/6FgEysb9TW0s7FUn8DGJ4hiaWlhp40ggkhEEDQTs7C7mUn26Jkci88U2Zk7vz3n7ne/zMzNrvza2poNgSICh4r6aovANgECEqGUAAFL8WtOQA6UEiBgKX7NCciBUgIELMWvOQE5UEqAgKX4NScgB0oJELAUv+YE5EApAQKW4tecgBwoJUDAUvyaE5ADpQQIWIpfcwJyoJQAAUvxa05ADpQSIGApfs0JyIFSAgQsxa85ATlQSoCApfg1JyAHSgkQsBS/5gTkQCkBApbi15yAHCglQMBS/JoTkAOlBAhYil9zAnKglAABS/FrTkAOlBIgYCl+zQnIgVICBCzFrzkBOVBKgICl+DUnIAdKCRCwFL/mBORAKQECluLXnIAcKCVAwFL8mhOQA6UECFiKX3MCcqCUAAFL8WtOQA6UEiBgKX7NCciBUgIELMWvOQE5UEqAgKX4NT8Mwb8T+PD6bfv46u1cobX7t1rf+Fxo5+DkudPt1NnT7c3Dp32nd411tbstkj/ouUznuGvyCwMEXADyN4edfG8ePZt7a/cF9I3PhXYO1rZetwVcqNGX7camX+5iz73yBz2X6RyH5jQddwuekvBaQsAVMAF7dwvtrmKL29B4X64bW7t3c/HUnseR/P80l9kPtfJra5sdsI/AQRJwBUygHX3Aj+bHXGyMOZdl0BJwGUr7ZKIP+NH8mIuNMeeyD7bt0xYhy1CSGY2AK2AC2ugDfjQ/5mJjzLksg9YiZBlKMqMRcAVMQNv3IN/9I7ZvvK9ddxXyS0gfGWNLEeh7kPdLyJ+fC/cDaBGyHyHnRyXgFpyAd+hBfmh8sWWX67bIYiOa/5/msv1hd/5YhMzSmNl/+eR5+/7laztz5UJbXV2dOWM3kwABB2hubm62x+dvtKOfvrV3Pz63i3dutU/HJ+363fU2mUwG3mU4SoCAexDb2NhoLy49aCcnx+ZS74/9bNfWb7cPJ460yzeuzp1zECNgERLjJZ1MwBVwAKhb8ACY5GECDgC1CBkAkzxMwGSgysUIeAaM8ZJOJkDAZKDKxQgQMMZLOpkAAZOBKhcjQMAYL+lkAgRMBqpcjAABY7ykkwkQMBmocjECBIzxkk4mQMBkoMrFCBAwxks6mQABk4EqFyNAwBgv6WQCBEwGqlyMAAFjvKSTCRAwGahyMQIEjPGSTiZAwGSgysUIEDDGSzqZAAGTgSoXI0DAGC/pZAIETAaqXIwAAWO8pJMJEDAZqHIxAgSM8ZJOJkDAZKDKxQgQMMZLOpkAAZOBKhcjQMAYL+lkAgRMBqpcjAABY7ykkwkQMBmocjECBIzxkk4mQMBkoMrFCBAwxks6mQABk4EqFyNAwBgv6WQCBEwGqlyMAAFjvKSTCRAwGahyMQIEjPGSTibwGy99FCdnOOgoAAAAAElFTkSuQmCC</thumbnail><scenes select="1"><scene name="[Li_Cherish] - U2L12 - Brickwall"><notes></notes><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><block s="doSetGlobalFlag"><l><option>flat line ends</option></l><block s="reportBoolean"><l><bool>true</bool></l></block></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="draw row A" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doRepeat"><l>6</l><script><block s="forward"><l>5</l></block><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block></script></block></script></block-definition><block-definition s="draw row B" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doFor"><l>i</l><l>1</l><l>7</l><script><block s="forward"><l>5</l></block><block s="doIfElse"><block s="reportVariadicOr"><list><block s="reportVariadicEquals"><list><block var="i"/><l>1</l></list></block><block s="reportVariadicEquals"><list><block var="i"/><l>7</l></list></block></list></block><script><custom-block s="draw brick, length: %n width: %n"><l>12.5</l><l>10</l></custom-block></script><script><custom-block s="draw brick, length: %n width: %n"><l>30</l><l>10</l></custom-block></script></block></script></block></script></block-definition><block-definition s="original draw brick wall, rows: %&apos;rows&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%n" initial="1"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block var="rows"/><script><block s="doIfElse"><block s="reportVariadicEquals"><list><block s="reportModulus"><block var="i"/><l>2</l></block><l>0</l></list></block><script><custom-block s="draw row A"></custom-block><block s="forward"><l>-210</l></block></script><script><custom-block s="draw row B"></custom-block><block s="forward"><l>-210</l></block></script></block><block s="changeYPosition"><l>-15</l></block></script></block></script></block-definition><block-definition s="odd? %&apos;number&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s" initial="1"></input></inputs><script><block s="doIfElse"><block s="reportNot"><custom-block s="is %n divsible by %n ?"><block var="number"/><l>2</l></custom-block></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="is %&apos;number&apos; divsible by %&apos;number2&apos; ?" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%n" initial="1"></input><input type="%n" initial="1"></input></inputs><script><block s="doIfElse"><block s="reportVariadicEquals"><list><block s="reportModulus"><block var="number"/><block var="number2"/></block><l>0</l></list></block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></block></script></block-definition><block-definition s="even? %&apos;number&apos;" type="predicate" category="operators"><header></header><code></code><translations></translations><inputs><input type="%s" initial="1"></input></inputs><script><block s="doIfElse"><custom-block s="is %n divsible by %n ?"><block var="number"/><l>2</l></custom-block><script><block s="doReport"><block s="reportBoolean"><l><bool>true</bool></l></block></block></script><script><block s="doReport"><block s="reportBoolean"><l><bool>false</bool></l></block></block></script></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="flat" ternary="true" hyperops="true" codify="false" inheritance="false" sublistIDs="false" id="182"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB4KADAAQAAAABAAABaAAAAAAHwbojAAAMwklEQVR4Ae3dwW3CQBAFUCdlUE/6SQlACekn9aSNxNx82JUm6A9Y5nGyR8tn/WTpn9Auiw8BAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIEHh5gbeXFwBA4GACX6eP338+0vXz5/uy/c6acbs/b2cPuraXMTSXRpf1/X9KF76Pn8mUAAECBAgQ6BRQwJ26sgkQIECAwERAAU9gjAkQIECAQKeAAu7UlU2AAAECBCYCCngCY0yAAAECBDoFFHCnrmwCBAgQIDARUMATGGMCBAgQINApoIA7dWUTIECAAIGJgAKewBgTIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQILBTgaccwbRTC9sicAiBO44jjDz36Eg3e1kWLuPXa+8u411np/6GlPWURoAAAQIESgIKuMRkEQECBAgQyAoo4KynNAIECBAgUBJQwCUmiwgQIECAQFZAAWc9pREgQIAAgZKAAi4xWUSAAAECBLICCjjrKY0AAQIECJQEFHCJySICBAgQIJAVUMBZT2kECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECHQLOI6wW1g+gQcL3HEE4HU9Gu6y3eaacbs/b2cPuraXMTSXRpfR0Yjjn8tO/Q0p6ymNAAECBAiUBBRwickiAgQIECCQFVDAWU9pBAgQIECgJKCAS0wWESBAgACBrIACznpKI0CAAAECJQEFXGKyiAABAgQIZAUUcNZTGgECBAgQKAko4BKTRQQIECBAICuggLOe0ggQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIEDgKAJ/3b9cOvC0HF4AAAAASUVORK5CYII=</pentrails><costumes><list struct="atomic" id="183"></list></costumes><sounds><list struct="atomic" id="184"></list></sounds><variables></variables><blocks></blocks><scripts></scripts><sprites select="1"><sprite name="Sprite" idx="1" x="0" y="-45" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="145,26,68,1" pen="tip" id="189"><costumes><list struct="atomic" id="190"></list></costumes><sounds><list struct="atomic" id="191"></list></sounds><blocks></blocks><variables></variables><scripts><script x="20" y="109.33333333333348"><block s="receiveGo"></block><block s="gotoXY"><l>0</l><l>0</l></block><block s="clear"></block></script><script x="18" y="212.16666666666686"><custom-block s="original draw brick wall, rows: %n"><l>3</l></custom-block></script></scripts></sprite></sprites></stage><variables></variables></scene></scenes></project><media name="[Li_Cherish] - U2L12 - Brickwall" app="Snap! 10.1-dev, https://snap.berkeley.edu" version="2"></media></snapdata>