<snapdata remixID="10068597"><project name="U3L4brickwall starter" app="Snap! 6, https://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALLSURBVHhe7di/ahRRGMbhs8HFRqs0Qppcg7VtCu0UhISk0CaxiSDiVVgIFhbWXoGFCKlzBbZiIVj4BwUxEsEYQzLbRA+bzczwMsvzNLMcphn48Z18GR0eKRCy0DwhQoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkSoBECZAoARIlQKIESJQAiRIgUQIkanR4pPndiZ0Hj5tfJ1aePDp+nj6vGcr7k3Pa6TzAp0srza8T9z/sHD9Pn9cM5f3JOe24golyBU9Re39yTjudBwiz6H0C1gxl0tWYgN3ofQmpGcqyUWMJ6YYlhChXcMMVnGEJIar3CTgvk672XbTT+xIyL8tG7btoxxJClCt4itr7k3PasYQQ1fsErBnKpKsxAbvR+xJSM5Rlo8YS0g1LCFGu4IYrOMMSQlTvE3BeJl3tu2in9yVkXpaN2nfRjiWEKFfwFLX3J+e0YwkhqvcJWDOUSVdjAnaj9yWkZijLRo0lpBuWEKJcwQ1XcIYlhKjeJ+C8TLrad9FO70vIvCwbte+iHUsIUa7gKWrvT85p58wBvn7+ovz8+r1cXb1RlpeXm1No58wB7u3tlWfXNsrFTz/Km/3P5da9O+Xj4oWyvr1VxuNx8xbMZqYreHd3t7y8+bAsjS83JyfeXfpd1jbvlvdXxuX2+lpzCtPNvIQclH97XRiNyp//nMM057qC3/76Vq5vbZQvi+Oyur3pCubczhzgq6MlZN8SQsdm+hsQuuYf0UQJkCgBEiVAogRIlACJEiBRAiRKgEQJkCgBEiVAogRIlACJEiBRAiRKgEQJkCgBEiVAogRIUCl/ARyjGGKd1ApQAAAAAElFTkSuQmCC</thumbnail><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" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPKSURBVHhe7d2xTSRBEEDRhTCIh3wuFvIhHtIAY9e8aTHSwFfR7zmzVqu0zrdKdQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAnh7fbby9vH4+fn7Lv4/3//5HZ9+5innW/uo8R+8Acz0/vgDALxJgAAgIMAAEBBgAAgIMAAEBBoCAAANAQIABICDAAAAAAAAAAAAAAMAs2504cybvzjxrU+YB5rKGBAABAQaAgAADQECAASAgwAAQEGAACAgwAAQEGAACAgwAAAAAAAAAAAAAzLLdibOz5+ScyVszz9pV8xy9A8xlDQkAAgIMAAEBBoCAAANAQIABICDAABAQYAAICDAABAQYAAAAAAAAAAAAAJhluxNnzuTdmWdtyjzAXNaQACAgwAAQEGAACAgwAAQEGAACAgwAAQEGgIAAA0BAgAEAAAAAAAAAAACAWbY7cXb2nJwzeWvmWbtqnqN3gLmsIQFAQIABICDAABAQYAAICDAABAQYAAICDAABAQaAgAADAAAAAAAAAAAAALNsd+LMmbw786xNmQeYyxoSAAQEGAACAgwAAQEGgIAAA0BAgAEgIMAAEBBgAAgIMAAAAAAAAAAAAAAwy3Ynzs6ek3Mmb808a1fNc/QOMJc1JAAICDAABAQYAAICDAABAQaAgAADQECAASAgwAAQEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgJ9xuX8lLnIbZFC9iAAAAAElFTkSuQmCC</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="Sprite" idx="1" x="-180" y="-105" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="145,26,68,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="16" y="79.4"><custom-block s="draw brick wall width %s row"><l>7</l></custom-block></script><script x="55" y="138.4"><custom-block s="draw a brick wall with %s rows with bricks per row %s of brick length %s width %s gap thickness %s"><l>7</l><l>5</l><l>30</l><l>10</l><l>6</l></custom-block></script><script x="262" y="24.23333333333335"><block s="clear"></block><block s="gotoXY"><l>0</l><l>0</l></block></script></scripts></sprite></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><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="row A" 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>6</l></block></script></block></script></block-definition><block-definition s="row B (2)" type="command" category="pen"><header></header><code></code><translations></translations><inputs></inputs><script><block s="forward"><l>6</l></block><custom-block s="draw brick, length: %n width: %n"><l>12</l><l>10</l></custom-block><block s="forward"><l>6</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>6</l></block></script></block><custom-block s="draw brick, length: %n width: %n"><l>12</l><l>10</l></custom-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"></input></inputs><script><block s="doReport"><block s="reportEquals"><block s="reportModulus"><block var="number"/><l>2</l></block><l>0</l></block></block></script></block-definition><block-definition s="draw brick wall width %&apos;row#&apos; row" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block var="row#"/><script><block s="doIfElse"><custom-block s="even? %s"><block var="i"/></custom-block><script><custom-block s="row B (2)"></custom-block><block s="turnLeft"><l>180</l></block><block s="changeYPosition"><l>-15</l></block></script><script><custom-block s="row A"></custom-block><block s="turnLeft"><l>180</l></block><block s="changeYPosition"><l>-15</l></block></script></block></script></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="%s"></input><input type="%s"></input></inputs><script><block s="setColor"><color>145,26,68,1</color></block><block s="doSetGlobalFlag"><l><option>flat line ends</option></l><l><bool>true</bool></l></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="row a %&apos;bricks&apos; %&apos;length&apos; %&apos;width&apos; %&apos;gap&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input><input type="%s"></input><input type="%s"></input></inputs><script><block s="doRepeat"><block var="bricks"/><script><custom-block s="draw brick, length: %n width: %n"><block var="length"/><block var="width"/></custom-block><block s="forward"><block var="gap"/></block></script></block></script></block-definition><block-definition s="row B %&apos;bricks&apos; %&apos;length&apos; %&apos;width&apos; %&apos;gap&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input><input type="%s"></input><input type="%s"></input></inputs><script><block s="forward"><block var="gap"/></block><custom-block s="draw brick, length: %n width: %n"><block s="reportQuotient"><block var="length"/><l>2.5</l></block><block var="width"/></custom-block><block s="forward"><block var="gap"/></block><block s="doRepeat"><block s="reportDifference"><block var="bricks"/><l>1</l></block><script><custom-block s="draw brick, length: %n width: %n"><block var="length"/><block var="width"/></custom-block><block s="forward"><block var="gap"/></block></script></block><custom-block s="draw brick, length: %n width: %n"><block s="reportQuotient"><block var="length"/><l>2.5</l></block><block var="width"/></custom-block></script></block-definition><block-definition s="draw a brick wall with %&apos;rows&apos; rows with bricks per row %&apos;bricks&apos; of brick length %&apos;length&apos; width %&apos;width&apos; gap thickness %&apos;gap&apos;" type="command" category="pen"><header></header><code></code><translations></translations><inputs><input type="%s"></input><input type="%s"></input><input type="%s"></input><input type="%s"></input><input type="%s"></input></inputs><script><block s="doFor"><l>i</l><l>1</l><block var="rows"/><script><block s="doIfElse"><block s="reportEquals"><block s="reportModulus"><block var="i"/><l>2</l></block><l>0</l></block><script><custom-block s="row a %s %s %s %s"><block var="bricks"/><block var="length"/><block var="width"/><block var="gap"/></custom-block><block s="turnLeft"><l>180</l></block><block s="changeYPosition"><l>-15</l></block></script><script><custom-block s="row B %s %s %s %s"><block var="bricks"/><block var="length"/><block var="width"/><block var="gap"/></custom-block><block s="turnLeft"><l>180</l></block><block s="changeYPosition"><l>-15</l></block></script></block></script></block></script></block-definition></blocks><variables></variables></project><media name="U3L4brickwall starter" app="Snap! 6, https://snap.berkeley.edu" version="1"></media></snapdata>