CHALLENGE 2: Now let's use variables to help our sprite navigate through a series of mazes.

  • Guide the hedgehog through the maze by changing the value of the two variables at the top of the program.

Remember, only change the first two lines of code. Do NOT change any of the move or turn commands.

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)