PDA

View Full Version : Recursion help needed


bchilds1863
05-03-2009, 04: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? :(

HisWorld
05-05-2009, 03: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.