Towers of Hanoi: Difference between revisions
m
→Python Graphic: (repositioned captions)
(→Python Graphic: Added caption texts to simple ascii diagrams) |
m (→Python Graphic: (repositioned captions)) |
||
Line 3,546:
)(rods))
)
return tpl[3] + '\n\n' + unlines(xs) + '\n' + ('_' * 3 * w)
Line 3,677 ⟶ 3,675:
main()</lang>
<pre>Hanoi sequence for 3 disks:
__
Line 3,682 ⟶ 3,681:
______
________________________
____
______ __
________________________
left ->
______ ____ __
________________________
__
______ ____
________________________
__
____ ______
________________________
__ ____ ______
________________________
mid ->
____
__ ______
________________________
__
____
______
________________________</pre>
▲left -> right</pre>
==={{libheader|VPython}}===
|