AtharvaDev / Towers-of-Hanoi

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:Python 100.0%