← All projects
Tower of Hanoi Game cover

Tower of Hanoi Game

2024 · HTML, CSS, TailwindCSS, JavaScript

An interactive Tower of Hanoi game built with Python and Pygame, featuring manual drag-and-drop gameplay and an automatic solver using an iterative Depth-First Search (DFS) algorithm with a stack. The application visualizes each move in real time, supports dynamic disk adjustment, and tracks the total number of moves.

Source code
Tower of Hanoi Game screenshot