The Tower of Hanoi problem
Posted on 1998-03-10
I need to write a shell script on a Sun system in K-shell that solves the Tower of Hanoi Problem. It must use a recursive function. I'm stumped.
Sorry, perhaps I should have elaborated. I have a sample program written out for this problem. I have the function already set up and it does call itself. The problem lies in the fact that it doesn't move the disks in the right order.