Skip to content

Towers of Hanoi is an ancient mathematical puzzle that starts off with three stacks and many disks.

Notifications You must be signed in to change notification settings

AtharvaDev/Towers-of-Hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Towers-of-Hanoi

Towers of Hanoi is an ancient mathematical puzzle that starts off with three stacks and many disks. The objective of the game is to move the stack of disks from the leftmost stack to the rightmost stack.

The game follows three rules:

  1. Only one disk can be moved at a time.
  2. Each move consists of taking the upper disk from one of the stacks and placing it on top of another stack or on an empty rod.
  3. No disk may be placed on top of a smaller disk.

In the terminal, run python3 script.py and play the game!

About

Towers of Hanoi is an ancient mathematical puzzle that starts off with three stacks and many disks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages