Sunday, February 15, 2009

Tower of Hanoi

http://www.dynamicdrive.com/dynamicindex12/towerhanoi.htm

The objective of the puzzle is to move the entire stack to another rod, obeying the following rules:

  • Only one disk may be moved at a time.
  • Each move consists of taking the upper disk from one of the rods and sliding it onto another rod, on top of the other disks that may already be present on that rod.
  • No disk may be placed on top of a smaller disk.

No comments: