10.16 Stack: Build Tower of Hanoi Game
1 Build Tower of Hanoi Game
The Tower of Hanoi is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conical shape.
2 Step by steps of build Tower of Hanoi Game
- Step 1: init bars and disk
- Step 2: Clone the disks and animation
- Step 3: Add List as stack
- Step 4: Improve the move and fix bugs
- Step 5: Use Clone for Bars
- Step 6: Add rule of prevent move(todo)