Skip to content

Hanoi Visualizer is an interactive Tower of Hanoi simulation that features smooth visuals, intuitive keyboard controls, and an integrated auto‑solver algorithm to demonstrate the optimal sequence of moves.

License

Notifications You must be signed in to change notification settings

dj-ayush/Hanoi-Visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏗️ Hanoi Visualizer

HTML5 CSS3 JavaScript License Stars Forks Issues Last Commit

Hanoi Visualizer is an interactive Tower of Hanoi simulation featuring smooth visuals, easy keyboard controls, and a built‑in auto‑solver algorithm to showcase the optimal sequence.

✨ Features

  • 🎨 Dynamic Canvas Rendering – Clean and responsive tower and disk visuals.
  • ⌨️ Keyboard Controls – Seamless manual gameplay.
  • 🤖 Auto-Solver Algorithm – Watch the optimal moves step by step.
  • 📱 Lightweight & Responsive – Works smoothly on modern browsers.

🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript
  • Logic: Custom script.js and solver.js for game mechanics and auto-solving.

📁 Folder Structure


Hanoi-Visualizer/
├── index.html
├── style.css
├── script.js
├── solver.js
└── README.md

⚙️ Getting Started


1. Clone the repo

git clone https://github.com/dj-ayush/Hanoi-Visualizer.git
cd Hanoi-Visualizer

2. Open the project

Simply open index.html in your preferred browser.

🎮 Controls

Key / Button Action
⬅️ ➡️ Move selection between towers
⬆️ ⬇️ / Space / Enter Pick up or place a disk
UI Buttons Change disk count or toggle auto‑solver

🤝 Contributing

We welcome contributions!

  1. Fork the repo
  2. Create a new branch: git checkout -b feature-name
  3. Commit your changes: git commit -m "Added feature"
  4. Push to your branch: git push origin feature-name
  5. Create a pull request 🚀

📌 Live Demo

Experience the project in action here:
👉 Live Demo

📄 License

This project is licensed under the MIT License.


Built with ❤️ by @dj-ayush

About

Hanoi Visualizer is an interactive Tower of Hanoi simulation that features smooth visuals, intuitive keyboard controls, and an integrated auto‑solver algorithm to demonstrate the optimal sequence of moves.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published