michitaro / towerofhanoi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tower of Hanoi

         Rod A                  Rod B                  Rod C
           |                      |                      |
          #|#                     |                      |
         ##|##                    |                      |
        ###|###                   |                      |
       ####|####                  |                      |
      #####|#####                 |                      |
     ######|######                |                      |
    #######|#######               |                      |
   ########|########              |                      |
  #########|#########             |                      |
 ##########|##########            |                      |
---------------------------------------------------------------------

towerofhanoi.py shows steps to move disks from rod A to rod C in ASCII art animation.

Usage

python ./towerofhanoi.py -n 20

About


Languages

Language:Python 100.0%