Circle 1: In the Number Guessing Game block it initializes the two script variables secret number and answer. The secret number is picked at random from 1 to 10. The answer is first set to 0 so that answer never starts equal to the secret number, otherwise the game would end there.
Circle 2: The sprite asks the user to guess a number. If the guess is too big or too small the sprite tells the user that. When the user guesses the correct number the sprite will congratulate the user and the game ends.
No comments:
Post a Comment