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).