You get to create a number guessing game in Scratch!
click here for a video description of the assignment
Your game will do the following:
1. choose a random number between two values – 1 and 100? Use the Pick Random block.
2. limit the number of guesses the player can make.
3. ask the player to make a guess.
4. if the guesses matches the secret number, tell them and ask them if they want to play again.
5. if the guess is too low, tell them the number is too low. If the guess is too high, tell them the number is too high. Either way, tell them how many guesses they have left.
6. if they run out of guesses, tell them that they are out of guesses and reveal the secret number. Ask them if they want to play again.
Test your game before you submit! Make sure that your game:
1. stops when they run out of guesses.
2. gives correct information about too high and too low.
3. subtracts from guesses remaining each time they miss a guess.
Programming requirements and hints:
1. use code comments on four different blocks to explain in your own words what is happening. Right click on the block and and choose “Add Comment”.
2. track the number of guesses remaining and change by -1 for each wrong guess.
3. stop asking for guesses when guesses = zero OR when guess = secret number. Use a repeat until block to contain the code that should repeat.

4. ask if they want to play again. Create a Custom Block that you can call when you want them to have the option to play again.
5. use a Custom Block that displays the number of guesses remaining. You can call this block when you want to show remaining guesses.