Turtle Confusion Challenges

The following images will provide you a chance to think through the logic of how to draw a particular image. It is a great challenge to try to think through the solution completely first, then write the code. Challenge yourself to have your code work correctly the first time it runs!

Note

These images are included with the permission of Barry Newell. They are from Barry’s Turtle Confusion book (published in 1988).

1

../../_images/confusion-1.png

Use at least one variable to make it easy to change the size of the square.

2

../../_images/confusion-2.png

Use the for loop structure when drawing this rectangle. Consider the ways the rectangle is the same as a square, and the ways it is different.

3

../../_images/confusion-3.png

It might help if you regarded this shape as a rectangle with a chunk bitten out of the corner. See if you can draw the shape with the bite taken out of a different corner as well. Sometimes you can solve these puzzles in a nice, simple way; other times, you can’t. Looking for a pattern to write a simple solution can usually help you learn something, though!

4

../../_images/confusion-41.png

Let’s draw the image three different ways:

  • using any commands that you like

  • using only the .forward() and .right() commands

  • using .forward(), .backward(), and .right(90) (note that you may use 90, and only 90, as the argument to the .right() command for this solution)

5

../../_images/confusion-51.png

6

../../_images/confusion-61.png

Go back to the code you wrote for the first image and turn it into a function, so that you can call something like square(my_turtle, 100).

7

../../_images/confusion-71.png

8

../../_images/confusion-81.png

If you are struggling with the shapes we are drawing, don’t worry too much about making the solution to this problem elegant. However, if you are feeling confident, see if you can think through how you might be able to draw this shape in a different, simpler way.

9

../../_images/confusion-9.png

Challenges 9 to 13 are all very similar…

10

../../_images/confusion-10.png

11

../../_images/confusion-11.png

12

../../_images/confusion-12.png

13

../../_images/confusion-13.png

14

../../_images/confusion-14.png

Find the pattern, then repeat.

15

../../_images/confusion-15.png

Think about the total angle that the turtle must turn to create this shape.

16

../../_images/confusion-161.png

Have you drawn a portion of this shape before?

17

../../_images/confusion-171.png

Have you drawn a portion of this shape before?

19

../../_images/confusion-19.png

Have you drawn a portion of this shape before?

20

../../_images/confusion-201.png

Have you drawn a portion of this shape before?

21

../../_images/confusion-21.png

Have you drawn a portion of this shape before?

22

../../_images/confusion-22.png

Have you drawn a portion of this shape before?

23

../../_images/confusion-23.png

Have you drawn a portion of this shape before?

24

../../_images/confusion-24.png

No more hints from this point on. You can figure it out!

25

../../_images/confusion-251.png

26

../../_images/confusion-26.png

27

../../_images/confusion-27.png

28

../../_images/confusion-28.png

29

../../_images/confusion-29.png

30

../../_images/confusion-30.png

31

../../_images/confusion-31.png

32

../../_images/confusion-32.png

33

../../_images/confusion-33.png

34

../../_images/confusion-34.png

35

../../_images/confusion-35.png

36

../../_images/confusion-36.png

37

../../_images/confusion-37.png

38

../../_images/confusion-38.png

39

../../_images/confusion-39.png

40

../../_images/confusion-40.png
Next Section - Micro:bit Reference