George Mills wrote:
>
> > George,
> >
> > I made a figure with several turtles. My current turtle in No. 1. I want
> > to connect it with, for instance, turtle 2. Can this be accomplished
> > from my position? (I mean, WITHOUT asking explicitly any of the turtles
> > about its POS and AFTER it connecting the two points.)
> >
> > In other words: What FUNCTION gives me the POS, or HEADING of a turtle,
> > while I'm activating another turtle?
> Think like a carpenter. If the tool does not exist to
> do the job, then build a tool (a jig) to make it so.
>
> to posturtle :t
> localmake "st turtle
> setturtle :t
> localmake "tp pos
> setturtle :st
> op :tp
> end
>
> You can do distturtle, headingturtle, orientationturtle, towardsturtle
> setposturtle, in the same fashion. I could spend a life time expanding
> the library.
George,
This must be in Logo proper, not in the library, in light of the
importance of functional programming.
I'm expecting a *primitive* function (instead of the 5 suggested library
functions), named maybe TURTLE, that will enable commands like:
SETXY TURTLE 5, SETH TOWARDS TURTLE 4, etc.
If I recall well, that was the situation in LogoWriter. I don't know how
is it in PC Logo or MicroWorlds. Deserves a check.
Thank You,
[[Yehuda]]
---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org. Mail
questions about the list administration to logofdn@gsn.org. To
unsubscribe send unsubscribe logo-l to majordomo@gsn.org.
Global SchoolNet Foundation -
Linking Kids Around the World!
Copyright GSN - All Rights Reserved
- Comments
& Questions
Visit GSN's
Global
Schoolhouse for more exciting learning resources!
Search our Site
-
Home