home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume10
/
logo
/
part01
/
library
/
hanoi.lg
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS
UTF-8
Wrap
Text File
|
1987-06-23
|
190 b
|
9 lines
to hanoi :number :from :to :other
if equalp :number 0 [stop]
hanoi :number-1 :from :other :to
print {sentence [Move disk] :number "from :from "to :to}
hanoi :number-1 :other :to :from
end