Category : BASIC Source Code
Archive   : UBAS830.ZIP
Filename : HANOI.UB

 
Output of file : HANOI.UB contained in archive : UBAS830.ZIP

˜TOWER OF HANOI
7˜ for UBASIC86 version 7
˜ from H.Okumura: Computer Algorithm Jiten (Gijutsu-Hyouron-Sha)
ˆ(˜
©2ƒN0Ññ À˜number of disks
¸<¤‚Bñ)
ÎFˆõ DisplayInit
÷PƒSrcÑñÀƒDstÑñÀ‚BƒSrc)уN0
ZˆõMove(ƒN0ƒSrcƒDst)
+d¬ðƒN0ÝñÀ¿
4n˜
TxõMove(ƒNƒSrcƒDst)
‚ƒNÒñŽˆõMove(ƒNÞñƒSrcÂñރSrcރDst)
¡ŒˆõDisplay
Ü–ƒNÒñŽˆõMove(ƒNÞñÂñރSrcރDstƒDst)
ã •
쪘
´õ DisplayInit
¾ºƒIƒJƒK
È€­
2Ò‰ƒJÑñŠƒN0
yܬñ%ÞñåƒN0݃JƒN0ރJÝñÀ‰ƒKÑñŠƒN0ރJÝñÀ™"ÛÛ"ÁÀŒ
€æŒ
“ð‰ƒIÑñŠñ
§ú‰ƒJÑñŠƒN0
è
¬ñ#Ý(ñåƒIÞñ)åƒN0ÝñåƒI݃N0ƒN0ރJÝñÀ™"³³"Á
ïŒ
öŒ
ý"•
,˜
6õDisplay
6@ºƒI1ƒI2ƒJ1ƒJ2ƒK
YJ ƒStpÀ¬ñÂðÀ™"STEP="ÁƒStpÁ
žT¬ñÂðÀ™"Move disk "ÁƒNÁ" from "ÁƒSrcÁ" to "ÁƒDstÁ" "Á
Ê^ƒI1уSrcÀƒJ1тBƒSrc)À¡‚BƒSrc)
öh ‚BƒDst)ÀƒI2уDstÀƒJ2тBƒDst)
Ir¬ñ$Ý(ñåƒI1Þñ)åƒN0ÝñåƒI1ƒN0ރJ1ÝñÀ™€ãƒN0Þñ)Á"³³"Á€ãƒN0Þñ)
 |¬ñ$Ý(ñåƒI2Þñ)åƒN0ÝñåƒI2݃N0ރNƒN0ރJ2ÝñÀ‰ƒKÑñŠƒNÀ™"ÛÛ"ÁÀŒ
dž‰ƒI1ÑðŠ(ñ ރN0)åñÐÀŒÀ˜timer
ΐ•


  3 Responses to “Category : BASIC Source Code
Archive   : UBAS830.ZIP
Filename : HANOI.UB

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/