Anonymous user
Towers of Hanoi: Difference between revisions
m
→{{header|REXX}}: recoded MOV subroutine to use named arguments instead of numerated args, aligned the args in the calling of MOV. -- ~~~~
m (→simple text moves: replaced solid right arrow glyph. -- ~~~~) |
m (→{{header|REXX}}: recoded MOV subroutine to use named arguments instead of numerated args, aligned the args in the calling of MOV. -- ~~~~) |
||
Line 1,630:
exit /*stick a fork in it, we're done.*/
/*─────────────────────────────MOV subroutine───────────────────────────*/
mov:
if #3==1 then call dsk #1, #2
else do▼
else
call mov #1,
call mov #1,
call mov 6-#1-#2,
return
/*─────────────────────────────DSK subroutine───────────────────────────*/
|