Lecture 11 - Tower of Hanoi - Rewriting

home | previous | next

Classes and Methods

Exercise

Exercise 11.1

Review

1. Create a new project and rewrite the code what we studied last lecture from the memory.

2. Modify the code to display the numbers vertically.

3. Restrict the start point into the rect of the moving number.

4. Show the number of moves and the minimum number of moves required to solve the puzzle.