Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Recursion help needed
Old
bchilds1863
Guest
 
Status:
Posts: n/a
Default Recursion help needed - 05-03-2009, 05:05 PM

Okay, we're working through chapter 7, and I'm trying ot figure out how to do the 'expanding spiral square' exercise. I can do it easily with a loop of course, but once I try to convert it to a recursive method, the zamboni just drives in a circle.

How do I get the zamboni to drive further forward each time while calling the same method back up without it starting back at the original moving distance again?
   
Reply With Quote
Old
HisWorld
Guest
 
Status:
Posts: n/a
Default 05-05-2009, 04:43 PM

I hope you realize you didn't even label what book you are talking about, there is more than one written about alice. Besides that to get any help from people on this forum you typically need to give more info, in case we don't have the book you are talking about.

Explain this without referring to a book and include your current game code and I'll help you further.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.