top of page

2022

Tower of Hanoi

Tower of Hanoi game using pure JavaScript

HTML/CSS

JavaScript

This is a project to build a game called Tower of Hanoi using pure JavaScript and HTML/CSS.

FUNCTIONS

1 /

Get a value from what the user clicks and where the user wants it to move


2/

Display the movement of disks


3/

Count and display the number of the movement


4/

Display a message when the user completes it


5/

Set an option bar to choose the number of disks


6/

Store the score a user gets even if the window is closed


7/

Set a timer and calculate the score depending on finished time


8/

Restart whenever a user wants by pushing restart button

bottom of page