> For the complete documentation index, see [llms.txt](https://www.pythonclassroom.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pythonclassroom.com/turtle-graphics/turtle-maze.md).

# Turtle Maze Problems

## Problems

1. Load the appropriate image&#x20;
2. Bring the turtle to the maze starting point
3. Figure out the commands to have your turtle find its way through the maze.

```python
import turtle
turtle.showturtle()
turtle.shape("turtle")
# load the appropriate image
turtle.bgpic('maze1.png')
turtle.penup()
# bring the turtle to the starting point
turtle.goto(-70, 210)
turtle.pendown()
turtle.pencolor("red")
# write your code below



# press enter in the Terminal to exit the program
input()
```

The link below loads the images into the CS50 Sandbox.  It also includes the source code above as maze1.py

<http://bit.ly/2UVEq1G>

## Problem 1

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqNc71_WLaG7dKc5FD%2Fmaze1.png?alt=media\&token=db685041-e954-461e-88f8-040002fe0f8d)

## Problem 2

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqNhYm6aSXHR9ZFb13%2Fmaze2.png?alt=media\&token=58446e5d-8f26-44b8-86d8-1cadddb39a92)

## Problem 3

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqNns3UdrWhYe55ztt%2Fmaze3.png?alt=media\&token=e85bff84-7d8a-41af-89fe-0935b437db6a)

## Problem 4

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqNruaXvj0HVzTYzHb%2Fmaze4.png?alt=media\&token=b02d05f3-c95c-44ca-833a-dcab86461dae)

## Problem 5

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqNwf9rf0phZ-PU1k7%2Fmaze5.png?alt=media\&token=28ad4071-ad23-4b33-baab-fde206d00c74)

## Problem 6

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqO-vd7JArT6_gTBNo%2Fmaze6.png?alt=media\&token=b30e40c4-c00b-47f0-89b4-44e78a9581b9)

## Problem 7

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqQaeLsSMj6y-d6GjY%2F-LoqQeS_2F9y4cDTQtVh%2Fmaze7.png?alt=media\&token=a2458ec5-b95a-439a-8335-8e014f38636c)

## Problem 8

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqOHI1NmEzIbbPJb6t%2Fmaze8.png?alt=media\&token=b0bd320f-9034-4032-973e-62a9d7614177)

## Problem 9

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqOLgbZVLvDSRZMUsU%2Fmaze9.png?alt=media\&token=e0ae83aa-ec64-4ad0-80e4-20b67a68728b)

## Problem 10

![](https://729613953-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LVVKHMnpflHwghmbdgi%2F-LoqNVlDfsQKY4gH9Qkx%2F-LoqOOiLLsSSr1yfaLzd%2Fmaze10.png?alt=media\&token=24bd2798-5cd1-48d8-a02d-69d43f69147a)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.pythonclassroom.com/turtle-graphics/turtle-maze.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
