Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 422 Bytes

README.md

File metadata and controls

13 lines (7 loc) · 422 Bytes

Tower

The problem:

Move all of the discs from the left-hand peg to the right-hand peg without stacking any bigger disc on a smaller one.

The solution:

A two-case recursion algorithm written in JavaScript, with output to an HTML5 canvas element.

To use:

View the file tower.html live in your browser (either online or offline).