Hi Pete, You can write a procedure that store the random moves in a list to bkrandom bk first :moves make "moves bf :moves end to fdrandom make "moves fput random 150 :moves fd first :moves end Before using those procedures send the command: make "moves [] to initialize the variable moves to the empty list This variable can be global or local to the procedure that uses fdrandom and bkrandom. Fdrandom add a new number to the list bkrandom goes backward the same amount than the last fdrandom and remove the number from the list . You can make any number of fdrandom than the bkrandom have to be in the reverse order. To erase a drawing, you have to change rt in lt and lt in rt example: penreverse fdrandom rt 30 fdrandom lt 50 fdrandom To erase: bkrandom rt 50 bkrandom lt 30 bkrandom Pete Wrote : >In Microworlds logo: If I have a random forward command is there a >reporter or command that would retain that random forward movement so >that it would move the turtle backwards the same number as the forward >random movement? >How would that line read please? >fd random 150 - and then how to go back exactly the random number >chosen ? > >Thanks very much for this help. > > >--------------------------------------------------------------- >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. > Free web-based email, Forever, From anywhere! http://www.mailexcite.com --------------------------------------------------------------- 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