source:
trunk/minix/commands/m4/Hanoi.m4@
9
Last change on this file since 9 was 9, checked in by , 14 years ago | |
---|---|
File size: 189 bytes |
Line | |
---|---|
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.