<snapdata remixID="8867942"><project name="Zoe-Hannah-Andy-Delong-Selin-lab 2.4 guessing game v1 " app="Snap! 5.1, http://snap.berkeley.edu" version="1"><notes></notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAAAXNSR0IArs4c6QAAAxNJREFUeAHt10FKYwEURNGfpvcRyI7MLDtyJ46duBr34dDWBkdNaCgKCsL5E0Xz3sPDhcTT59dzeAiMBH6N7jpL4K+AAIUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAAp/yOC1ADUwEBTvkdF6AGpgICnPI7LkANTAUEOOV3XIAamAoIcMrvuAA1MBUQ4JTfcQFqYCogwCm/4wLUwFRAgFN+xwWogamAAKf8jgtQA1MBAU75HRegBqYCApzyOy5ADUwFBDjld1yAGpgKCHDK77gANTAVEOCU33EBamAqIMApv+MC1MBUQIBTfscFqIGpgACn/I4LUANTAQFO+R0XoAamAgKc8jsuQA1MBQQ45XdcgBqYCghwyu+4ADUwFRDglN9xAWpgKiDAKb/jAtTAVECAU37HBaiBqYAA7/Cfz+fj5eXlzm/9uCVw+vx6Wssebc/1ej1+eN7f34/X19fjcrk82p85/XsE+B/+p6enf15xOp2Oj4+P4+3t7fj+3pMLeAvO7UwWBH4Xdjzsiu+34J/HW/CPRPerAO94fv8T8vz8fNxutzuv8OOGgM+ADUU7YgGfAWM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRCwgwpjPYEBBgQ9GOWECAMZ3BhoAAG4p2xAICjOkMNgQE2FC0IxYQYExnsCEgwIaiHbGAAGM6gw0BATYU7YgFBBjTGWwICLChaEcsIMCYzmBDQIANRTtiAQHGdAYbAgJsKNoRC/wBwiYrNlPwZfgAAAAASUVORK5CYII=</thumbnail><stage name="Stage" width="480" height="360" costume="0" color="255,255,255,1" tempo="60" threadsafe="false" volume="100" pan="0" lines="round" ternary="false" codify="false" inheritance="true" sublistIDs="false" scheduled="false" id="1"><pentrails>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAFoCAYAAACPNyggAAAAAXNSR0IArs4c6QAAC99JREFUeAHt0DEBAAAAwqD1T20MH4hAYcCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQM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GDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBgwYMCAAQMGDBj4DAyN/gABHhb3AgAAAABJRU5ErkJggg==</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="zoe" idx="1" x="0" y="0" heading="90" scale="1" volume="100" pan="0" rotation="1" draggable="true" costume="0" color="80,80,80,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="31" y="33"><block s="receiveGo"></block><block s="doSayFor"><l>Welcome!</l><l>1</l></block><block s="doAsk"><l>What is your name?</l><comment w="90" collapsed="false">Program asks the player what their name is and waits so they can type in an answer. The variable that follows stores their name as an answer so it can repeat their name back to them later in the game.</comment></block><block s="doSetVar"><l>name 1</l><block s="getLastAnswer"></block></block><block s="doForever"><script><block s="doSayFor"><l>Think of a number between 1-10...</l><l>2</l></block><block s="doAsk"><l>What is the number you are thinking of?</l></block><block s="doIfElse"><block s="reportEquals"><block s="getLastAnswer"></block><block s="reportRandom"><l>1</l><l>10</l></block></block><script><block s="doSayFor"><l>You guessed the special number!</l><l>1.5</l></block><block s="doSayFor"><l>Thanks for playing!</l><l>1</l></block><block s="doStopThis"><l><option>this script</option></l></block></script><script><block s="doSayFor"><block s="reportJoinWords"><list><l>Sorry! </l><block var="name 1"/></list></block><l>2</l></block><block s="doSayFor"><l>That guess is not correct.</l><l>2</l></block><block s="doSayFor"><l>Guess again!</l><l>1</l></block></script></block></script></block></script><comment x="446" y="127" w="90" collapsed="false">The forever loop allows the game to repeat over again until the player guesses the correct number that the computer is randomly programming every time.</comment><comment x="560" y="163" w="90" collapsed="false">Computer asks what number the player is guessing and waits so they can give an answer. Conditional IF or ELSE is used so that the computer will say a player guess the right number when the answer they submitted matches the number randomly chosen by the computer for that round. Else, the computer tells the player they guessed wrong and they have to guess again. </comment><comment x="325" y="266" w="90" collapsed="false">The &quot;stop this script&quot; is necessary so that when a player does guess the correct number, the computer stops the program after thanking them to play and is able to reset for a fresh age with a new player.</comment><comment x="32" y="402" w="90" collapsed="false">The join operator block is used so that the computer says &quot;Sorry&quot; and then the name of the current player in one speech bubble, rather than having two separate speech bubbles.</comment><comment x="150" y="389" w="90" collapsed="false">The &quot;name 1&quot; variable block stores the name the player submitted at the beginning of the game so the computer temporarily remembers the name of the current player. </comment></scripts></sprite><watcher var="name 1" style="normal" x="10" y="10" color="243,118,29" hidden="true"/></sprites></stage><hidden></hidden><headers></headers><code></code><blocks><block-definition s="name" type="reporter" category="sensing"><header></header><code></code><translations></translations><inputs></inputs><script><block s="doReport"><l></l></block></script></block-definition></blocks><variables><variable name="name 1"><l>zoe</l></variable></variables></project><media name="Zoe-Hannah-Andy-Delong-Selin-lab 2.4 guessing game v1 " app="Snap! 5.1, http://snap.berkeley.edu" version="1"></media></snapdata>