source: trunk/minix/commands/m4/Hanoi.m4@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 189 bytes
Line 
1define(hanoi, `trans(A, B, C, $1)')
2
3define(moved,`move disk from $1 to $2
4')
5
6define(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.