Towers of Hanoi: Difference between revisions
Content added Content deleted
mNo edit summary |
m (→pictorial moves: corrected over compensation in the computation (when linesize is even) of the position of the third tower (for the down arrow).) |
||
Line 3,350: | Line 3,350: | ||
c.1= sw % 3 % 2 /* [↑] SW: assume default Screen Width*/ |
c.1= sw % 3 % 2 /* [↑] SW: assume default Screen Width*/ |
||
c.2= sw % 2 - 1 |
c.2= sw % 2 - 1 |
||
c.3= sw - 1 - c. |
c.3= sw - 1 - c.1 |
||
#=0; z=2**N-1; moveK=z /*#moves; min# of moves; where to move.*/ |
#=0; z=2**N-1; moveK=z /*#moves; min# of moves; where to move.*/ |
||
@abc='abcdefghijklmnopqrstuvwxyN' /*dithering chars when many disks used.*/ |
@abc='abcdefghijklmnopqrstuvwxyN' /*dithering chars when many disks used.*/ |