Skip to content

The Tower of Hanoi is a classic game of logical thinking and sequential reasoning. Move rings from one tower to another but make sure you follow the rules! Built with vanilla JavaScript, HTML5, and CSS3.

Notifications You must be signed in to change notification settings

yasinabdmahmood/Tower-of-Hanoi

Repository files navigation

Tower of Hanoi

Description

Tower of hanoi App is a game which is based on a mathematical game or puzzle consisting of three rods and a number of disks of various diameters, which can slide onto any rod. The puzzle begins with the disks stacked on one rod in order of decreasing size, the smallest at the top, thus approximating a conical shape. The objective of the puzzle is to move the entire stack to the last rod, obeying the following rules:

  • Only one disk may be moved at a time.
  • 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.
  • No disk may be placed on top of a disk that is smaller than it.

Built with

  • html
  • css
  • linter
  • Javascript

Live Demo

Live Demo Link

image

Getting started

To get a local copy up and running follow these simple example steps.

  1. Open terminal or cmd on you local machine and navigate to your desired directory.
  2. Run 'https://github.com/yasinabdmahmood/Tower-of-Hanoi.git'
  3. Run 'code'

Prerequisites

  • VS code editor
  • web browswe(chrome Firefox Opera etc)

Install

  • Git

Author

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

The Tower of Hanoi is a classic game of logical thinking and sequential reasoning. Move rings from one tower to another but make sure you follow the rules! Built with vanilla JavaScript, HTML5, and CSS3.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published