Skip to content

In this project, the Tower of Hanoi problem is tackled through a recursive function. Users input the number of disks, and it then calculates and displays the sequence of moves both textually and graphically.

License

Notifications You must be signed in to change notification settings

HomaTaherpour/Tower-of-Hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tower of Hanoi

This project consists of two parts: a text-based Tower of Hanoi solver and a graphical representation using Pygame.

Text-Based Tower of Hanoi Solver

This part of the project utilizes a recursive function to solve the Tower of Hanoi problem and provides a textual representation of the moves made. It prompts the user for the number of disks, performs the necessary calculations, and prints the sequence of moves to solve the puzzle.

Graphical Tower of Hanoi

The graphical representation of the Tower of Hanoi problem is created using the Pygame library. It visually demonstrates the movement of disks between towers, with a count of moves displayed on the screen.

About

In this project, the Tower of Hanoi problem is tackled through a recursive function. Users input the number of disks, and it then calculates and displays the sequence of moves both textually and graphically.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages