STEP 2: Let's tell the user how to play the game!

  • Go to and drag out Say for Time.
  • Assign .say() to your sprite by changing the name in front of .say() from sprite to computer.
  • Change the string in .say() to "I bet you can't guess my number! It's between 1 and 10."

Remember, changing the name in front of a command to assign it to a specific sprite is called dot notation!

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)