Towers of Hanoi

From Fōrmulæ wiki
Jump to: navigation, search

This page is the answer to the task Towers of Hanoi in the Rosetta Code.

Description (from Rosetta Code)

Task

Solve the Towers of Hanoi problem with recursion.

Program

The same program when the flowchart package visualization is selected. Click/tap to enlarge

TowersHanoiCode.png

Example

TowersHanoiOutput.png