Physical Turtle for Education

pip install physicalturtle

Draw an obstacle

draw polygons

forward(step)
right(angle)

Terminate loop by counting steps, or angles

make it so the turtle can feel the obstacle

tk.touch_right()   # are we touching something on the right

end up with gap as turtle stops before hitting the solid line

NB - if turtle starts on solid line, it can’t move.

Simple outline following

test if barrier still there, move forward a bit, test again ...

  • go round entire object
  • go round object until going back in original direction - though the simplistic version (totalturn % 360 == 0) can lead to loops
  • learning - think about object, what’s possible
  • thinking about how to draw the maze can be more interesting than navigating the maze
  • lots of things that teachers can talk about

Table Of Contents

Previous topic

Education Track

Next topic

Turtles all the way down

This Page