source:
trunk/minix/commands/m4/Hanoi.m4@
11
Last change on this file since 11 was 9, checked in by , 14 years ago | |
---|---|
File size: 189 bytes |
Rev | Line | |
---|---|---|
[9] | 1 | define(hanoi, `trans(A, B, C, $1)') |
2 | ||
3 | define(moved,`move disk from $1 to $2 | |
4 | ') | |
5 | ||
6 | define(trans, `ifelse($4,1,`moved($1,$2)', | |
7 | `trans($1,$3,$2,DECR($4))moved($1,$2)trans($3,$2,$1,DECR($4))')') |
Note:
See TracBrowser
for help on using the repository browser.