Assignment 6: Turtle solves a small maze
Description
Often programs are geared to a specific purpose such as navigating through a maze. Using the basic commands of forward, left and right, help a turtle to solve a maze. In this assignment you will explore some new commands for inserting a picture as a background and going to a location without leaving a line.
Task
Using Python Turtle, navigate the turtle through S_Maze1.
Post a screen shot of turtle solving the maze.
Post a screen shot of the code. Don't forget to use comments to include your name and a short description as part of your program.
As a challenge, create an additional turtle to solve the maze in reverse. Use the same program.
Questions
What website can you go to find out about available commands for a python turtle? The website is the following https://docs.python.org/3.3/library/turtle.html
How do you place a picture as a background using Python Turtle? using the command: turtle.bgpic("[Insert_File_Name_Here]")
What can you do to move a turtle to a location without it leaving a line behind? Using the Commands : name.penup() or name.pu() and name.hideturtle() or name.ht() then to move it you use the command name.goto(x,y) then type name.pd or name.down or name.pendown
Following message appears when you run the program.
"S_Maze1.gif": no such file in directory
Provide two reasons for this error. 1. You did not type file name correctly 2. Forgot the "" marks