STEP 11: It's important to test each part of our code as we build it, and make sure it is working correctly.

  • Run the code and check the value of rand_num displayed on the stage.
  • Enter a number that is not rand_num. The sprite should immediately ask for another guess.
  • Next, enter the value of rand_num. The sprite should say "Great job,..." and the program will stop!

Test every change you make in the upcoming activities to make sure your code is working correctly!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)