问题
I have successfully built the Tower of Hanoi game in java with user interactivity.
However, I also want to add a feature where if the user asks for hint, the program does the next move for the user in the most efficient way.
I know the game can be solved using recursion but as far as I know, I can't use recursion mid-game to give answers.
Do you guys have any suggestions?
来源:https://stackoverflow.com/questions/21668424/towers-of-hanoi-giving-help-to-the-user-mid-game