Tower Of Hanoi Hanoi 3disc Medium — Set 9
Tower of Hanoi: 3 Disks — Medium #9
Show solution
[{"step":1,"from":"A","to":"C","diskSize":1,"description":"Move disk 1 (smallest) from peg A to peg C."},{"step":2,"from":"A","to":"B","diskSize":2,"description":"Move disk 2 (second largest) from peg A to peg B."},{"step":3,"from":"C","to":"B","diskSize":1,"description":"Move disk 1 (smallest) from peg C to peg B."},{"step":4,"from":"A","to":"C","diskSize":3,"description":"Move disk 3 (largest) from peg A to peg C."},{"step":5,"from":"B","to":"A","diskSize":1,"description":"Move disk 1 (smallest) from peg B to peg A."},{"step":6,"from":"B","to":"C","diskSize":2,"description":"Move disk 2 (second largest) from peg B to peg C."},{"step":7,"from":"A","to":"C","diskSize":1,"description":"Move disk 1 (smallest) from peg A to peg C."}]
- Title
- Tower of Hanoi: 3 Disks — Medium #9
- DiskCount
- 3
- TaskType
- partial-continue
- Pegs
- A: Peg A (Start)B: Peg B (Spare)C: Peg C (Goal)
- InitialState
- A: [3,2,1]B: []C: []
- TargetState
- A: []B: []C: [3,2,1]
- PartialState
- A: [3]B: [2]C: [1]
- MovesCompleted
- 2
- Solution
- {"step":1,"from":"A","to":"C","diskSize":1,"description":"Move disk 1 (smallest) from peg A to peg C."}
- {"step":2,"from":"A","to":"B","diskSize":2,"description":"Move disk 2 (second largest) from peg A to peg B."}
- {"step":3,"from":"C","to":"B","diskSize":1,"description":"Move disk 1 (smallest) from peg C to peg B."}
- {"step":4,"from":"A","to":"C","diskSize":3,"description":"Move disk 3 (largest) from peg A to peg C."}
- {"step":5,"from":"B","to":"A","diskSize":1,"description":"Move disk 1 (smallest) from peg B to peg A."}
- {"step":6,"from":"B","to":"C","diskSize":2,"description":"Move disk 2 (second largest) from peg B to peg C."}
- {"step":7,"from":"A","to":"C","diskSize":1,"description":"Move disk 1 (smallest) from peg A to peg C."}
- OptimalMoveCount
- 7
- Question
- The puzzle has been started — 2 move(s) have already been made. The current state is shown below. Continue from this point and move all disks to peg C. How many more moves are needed?
- Rules
- Only one disk may be moved at a time.
- A disk can only be placed on top of a larger disk or on an empty peg.
- You must move the entire stack from peg A to peg C.
- Hint
- 5 more moves are needed. The total minimum is 7.