Towers of Hanoi

You may freely choose your steps on the path - but the path is the path

This Towers of Hanoi animation uses the <canvas> element and may not run in older versions of Internet Explorer.


Some Android (eg default) browsers can't render the site properly. We'll let you know if they fix the problem (41312). Or try another browser, eg Firefox.

Example showing different choices of intermediate peg.

Not OMG, more OMAHD. Tower is to move from peg 1 to 5. On the 'Outrun' the rightmost free peg is used as the intermediate peg. On the 'Fetch' the nearest peg is used as the intermediate peg.