Towers of Hanoi: Difference between revisions
Content added Content deleted
m (→pictorial moves: added/changed comments and whitespace, changed indentations.) |
m (→pictorial moves: moved some statements around.) |
||
Line 2,901: | Line 2,901: | ||
/*──────────────────────────────────────────────────────────────────────────────────────*/ |
/*──────────────────────────────────────────────────────────────────────────────────────*/ |
||
dsk: parse arg from dest; #=#+1; pp= |
dsk: parse arg from dest; #=#+1; pp= |
||
if from==1 then do |
if from==1 then do; pp=overlay(bl, pp, c.1) |
||
pp=overlay( |
pp=overlay(bar, pp, c.1+1, c.dest-c.1-1, bar) || tr |
||
pp=overlay(bar, pp, c.1+1, c.dest-c.1-1, bar) || tr |
|||
end |
end |
||
if from==2 then do |
if from==2 then do |