other.tower_of_hanoi

Functions

main(→ None)

move_disk(→ None)

move_tower(→ None)

Module Contents

other.tower_of_hanoi.main() None
other.tower_of_hanoi.move_disk(fp, tp) None
other.tower_of_hanoi.move_tower(height, from_pole, to_pole, with_pole) None
>>> move_tower(3, 'A', 'B', 'C')
moving disk from A to B
moving disk from A to C
moving disk from B to C
moving disk from A to B
moving disk from C to A
moving disk from C to B
moving disk from A to B