STEP 7: We'll use squares to construct our maze. Let's use the maze's length to get our square's length.

  • In , drag Division indented inside create_maze().
  • Change the variable to the left of the = sign from my_var to square_length.
  • Then, change the number 6 to 500.0 (the length of our stage) and 2 to number_of_rows.
  • We're finding the length of the square, since we're dividing the stage into the number of rows in our maze.

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)