Turtle Maze Challenge

maze
Your challenge is to guide the turtle through the maze. To do so you will need to use the following instructions:

  • myPen.forward(100) to move forward by 100 pixels,
  • myPen.right(90) to turn right by 90 degrees,
  • myPen.left(90) to turn left by 90 degrees.

Complete the code


Using a for loop


Note that, as you progress through the maze you may also decide to use a for loop to repeat a set of instructions several times.
For instance:

for i in range(0,3):
   myPen.forward(100)
   myPen.left(90)

Video Tutorial:



unlock-access

Solution...

The solution for this challenge is available to full members!
Find out how to become a member:
➤ Members' Area

Did you like this challenge?

Click on a star to rate it!

Average rating 4.3 / 5. Vote count: 33

No votes so far! Be the first to rate this post.

As you found this challenge interesting...

Follow us on social media!

Tagged with: , ,