I'm trying to develop a fibonacci method to solve the following:
A guy is at the bottom of a mountain, the mountain is to the North, he is facing South. He says, "Now that I am at the bottom of the mountain, I need to turn around." After he turns he says, "Then I walk in a
spiral of six quarter turns to the left. If I do this I will be at the opening for the magic tunnel at the bottom of the mountain."
This has to be solved using
recursion. The method to be invoked must employee fibonacci computation methods. Otherwise his movement will be similar to 3rd grade herky-jerky movements.
Has anyone successfully used recursion in solving Fibonacci computations in ALICE and would you be willing to share your code?
Computing the fibonacci numbers will cause the MAN to walk in a true spiral, not a circle or square or rectangle, etc.
Thanks in advance
P.S. The answer is
NOT:
Loop 6 times
Do together
man.move. forward .1 meters
man.turn.left 1/4 revolution