Towers Of Hanoi

Background

Implements the towers of hanoi problem in python3

Running

You can specify the number of discs as an optional first argument. By default it uses 3. It shows the initial and final state of the towers and prints the total number of moves taken.

python3 towers_of_hanoi

To run with 5 discs

python3 towers_of_hanoi 5