View Single Post
Recursion: See GeekonCall
Posts: n/a
Talking Recursion: See GeekonCall - 11-20-2006, 07:54 PM

You're making it way too hard just because it sounds that way.

I suggest you look at the attached code and run the world a couple of times. Then delete the "if block" and reenter it yourself - you will get a warning from Alice that you are about to make a recursive call, that is, the method is calling itself. Say you know what you are doing (even if you don't ) and run the world again. If you did it right, you should get the same result. If you don't, compare your code back to the original.

Note that you have to have the "if test" there or it will run forever (or at least until your computer wears out or you pull the plug).
Attached Files
File Type: a2w GeekonCall.a2w (899.5 KB, 728 views)

Last edited by DrJim; 11-20-2006 at 07:59 PM.
Reply With Quote