TOWERS OF HANOI

view code for this file here

Rules:

e.g. picture for n=3:
         A                        B                       C

         ||                       ||                      ||
         ||                       ||                      ||
       __||__                     ||                      ||
     _|______|_                   ||                      ||
   _|__________|_                 ||                      ||
  |______________|                ||                      ||


Number of Discs on Peg A