Python Program for Tower of Hanoi
Closed this issue · 3 comments
jatinkumar027 commented
Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire stack to another rod, obeying the following simple rules:
- Only one disk can be moved at a time.
- Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack i.e. a disk can only be moved if it is the uppermost disk on a stack.
- No disk may be placed on top of a smaller disk.
Note: Transferring the top n-1 disks from source rod to Auxiliary rod can again be thought of as a fresh problem and can be solved in the same manner.
Definition of done:
- Clear code should be written.
- Comments will be really appreciable.
- Add minimum 2 test cases to test the code.
- Add you code under Python/Data Structure and Algorithms/<ProgramName.py>
- Make sure to add the Screenshot of Program Testing in the comment while merging the PR
Tanmay0808 commented
Hi, i am working on this one as well, please assign it to me.
jatinkumar027 commented
Okay. sure
jatinkumar027 commented
Merged #43 (comment)