Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example Idea: Turtle Chase #28

Open
sunjay opened this issue Nov 19, 2017 · 0 comments
Open

Example Idea: Turtle Chase #28

sunjay opened this issue Nov 19, 2017 · 0 comments

Comments

@sunjay
Copy link
Owner

sunjay commented Nov 19, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant