turtle icon indicating copy to clipboard operation
turtle copied to clipboard

Example Idea: Turtle Chase

Open sunjay opened this issue 6 years ago • 0 comments

This is an example which depends on the implementation of multiple turtle support (#16).

The basic idea will look reminiscent of the maze generation example. It starts with three turtles all in the center. The outer two turtles turn away from the center turtle all at once. They both move out and draw lines around the center turtle to box it in. The center turtle sees this and turns slightly back and forth in both directions to look at the other turtles.

untitled note - nov 19 2017 2 55 pm - page 1

All three turtles suddenly take off and start moving. The middle turtle can't escape the lines drawn by the outer two, but it must keep going in order to try to go faster than them and escape.

This should result in a drawing/animation similar to the maze where the two outer turtles are drawing the "walls" of the maze in real-time and the inner turtle is trying to "solve" the maze by escaping the lines that they draw. It's a short little animation that should be entertaining to watch.

sunjay avatar Nov 19 '17 19:11 sunjay