EXTEND: Now modify and extend your program! Make sure you meet these minimum technical requirements:

  1. Change the location options in your first .ask() command from “beach” and “moon” to something else.
  2. Change the settings in your first two if statement to match your new possible options.
  3. Add another group of if statements to take your sprite on a longer adventure!
  4. When you're finished, click Submit and Next to continue!

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)