Skip to content

Tower of hanoi visualization webpage made using animejs

Notifications You must be signed in to change notification settings

PyPranav/Tower_of_Hanoi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tower of Hanoi Visualization

Tower of Hanoi Visualization is an interactive webpage that beautifully illustrates the classic Tower of Hanoi puzzle. Built using the powerful Anime.js library, this visualization showcases the step-by-step process of solving the puzzle, where disks are moved between three pegs according to the rules of the game. Whether you're a student, educator, or just someone interested in algorithmic puzzles, this project provides a clear and engaging way to understand the Tower of Hanoi problem.

Hosted Site

Experience the live version of the Tower of Hanoi visualization Tower of Hanoi.

JavaScript Library

This project utilizes the Anime.js library, which is renowned for creating fluid, dynamic animations with ease. Anime.js plays a crucial role in animating the movement of disks in this visualization, making the process visually appealing and easy to follow.

Features

  • Interactive Visualization: Watch as the disks move between pegs, following the Tower of Hanoi rules.
  • Smooth Animations: The transitions are powered by Anime.js, ensuring a smooth and visually pleasing experience.
  • Educational Tool: Ideal for students and educators to demonstrate the recursive nature of the Tower of Hanoi puzzle.

Screenshots

Below are some screenshots of the Tower of Hanoi visualization:

Screenshot 1

Screenshot 2

How to Use

Follow these steps to explore the Tower of Hanoi visualization:

  1. Visit the Live Page: Head over to the Tower of Hanoi visualization to get started.
  2. Observe the Puzzle Solving Process: The animation will automatically start, showcasing how the disks move from one peg to another. The visualization follows the correct order of moves, demonstrating the solution to the Tower of Hanoi problem.
  3. Enjoy the Experience: Whether you're using it for learning or simply to appreciate the algorithm, enjoy the smooth and captivating animations provided by Anime.js.

Educational Benefits

This visualization can be an excellent tool for teaching and learning about:

  • Recursion: Understanding how a problem can be broken down into smaller, similar problems.
  • Algorithm Efficiency: Learning about the minimum number of moves required to solve the puzzle.
  • Problem Solving: Developing strategies to solve complex puzzles step by step.

Future Enhancements

  • User Interaction: Allow users to interact with the puzzle, such as moving the disks manually or selecting the number of disks.
  • Step-by-Step Mode: Introduce a mode where users can advance the animation one step at a time, making it easier to follow the recursive process.
  • Customizable Themes: Offer different visual themes for the puzzle to enhance the user experience.

About

Tower of hanoi visualization webpage made using animejs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published