PDA

View Full Version : Recursion Project 8-2, Skeleton Reversal


neil04
07-21-2009, 01:51 PM
I am working on an Extra Credit assignment for class, but i am having a bit of difficulty. The project is supposed to occur similar to the Towers of Hanoi Puzzle. I understand how the tower of Hanoi puzzle works, but cant think of the code that will make the skeletons change order.

Has anyone done project 8-2 of Learning to Program with Alice Second Edition?

Can you give me any tips on how to accomplish the code for this particular project.

I understand how the move it command worked for the Towers of Hanoi Puzzle. I do not understand how the world.towers method worked in order to incorporate the move it method. Any help would be great.

SuzukiGil
11-28-2011, 12:32 PM
bump as i also need help on this

viennaseo
11-28-2011, 02:02 PM
Hi Suzuki,

I assume you've read the PDF notes (Page 371):

http://oz.plymouth.edu/~wjt/Foundations/Alice/Alice08.pdf

You can check out this example of recursion
http://www.alice.org/community/showthread.php?p=1677#post1677

If you did that and it didn't help, try reading wikipedia "recursion" it explains the idea really well