home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 202 / 202.d81 / b.mahjong (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  2KB  |  55 lines

  1. 0 rem mahjong boot * rbcook * 10.93
  2. 100 ifdv<>0then130
  3. 110 dv=peek(186):ifdv<8thendv=8
  4. 120 gosub41000:load"obj.mahjong",dv,1
  5. 130 sys4608
  6. 140 poke53280,1:poke53281,1:poke198,0
  7. 150 print"[147]"tab(7)"[152][\\\\\\\\\\\\\\\\\\\\\\\]"
  8. 160 printtab(7)"#     m a h j o n g     [152]$[144]@"
  9. 170 printtab(7)"[152]&+++++++++++++++++++++++'[144]@"
  10. 180 printtab(7)"[152]#                       $[144]@"
  11. 190 printtab(7)"[152]# f1 [144]solitaire game     [152]$[144]@"
  12. 200 printtab(7)"[152]# f3 [144]new tournament     [152]$[144]@"
  13. 210 printtab(7)"[152]# f5 [144]restart tournament [152]$[144]@"
  14. 220 printtab(7)"[152]# f7 [144]tournament game    [152]$[144]@"
  15. 230 printtab(7)"[152]# f8 [144]return to loadstar [151]$[144]@"
  16. 240 printtab(7)"[152]#                       $[144]@"
  17. 250 printtab(7)"[152]^!!!!!!!!!!!!!!!!!!!!!!!_[144]@"
  18. 260 printtab(7)"[144] @@@@@@@@@@@@@@@@@@@@@@@@@":ifa$="[133]"then300
  19. 270 printtab(14)"[151]player up%[150]"a+1+(a=8)*8""
  20. 280 forl=1to7step2:printtab(4)"[144]player[152]"l"[157][144]%[154]"sc(l);
  21. 290 printtab(22)"[144]player[152]"l+1"[157][144]%[154]"sc(l+1):next
  22. 300 geta$:ifa$="[133]"thensys4614:goto140
  23. 310 ifa$="[134]"thenpoke253,0:poke254,0:sys4614:forl=1to8:sc(l)=0:next:a=0:goto360
  24. 320 ifa$="[135]"thensys4614:a=0:goto360
  25. 330 ifa$="[136]"thensys4618:goto360
  26. 340 ifa$="[140]"then40000
  27. 350 goto300
  28. 360 a=a+1+(a=8)*8:sc(a)=sc(a)+peek(252)*256+peek(251):goto140
  29. 10000 dv=peek(186):n$="b.mahjong":open15,dv,15,"s0:"+n$:close15:saven$,dv:end
  30. 40000 poke53280,0:poke53281,0:dv=peek(186):q$=chr$(34):print"[144][147]";
  31. 40010 a$="hello connect":r$=chr$(13)+"r[213]"+chr$(13):q$=chr$(34)
  32. 40020 close2:open2,dv,2,a$:get#2,b$:close2:ifst=0then40050
  33. 40030 close15:open15,dv,15,"i0":input#15,en:close15
  34. 40035 poke53280,14:poke53281,6:print"[147][154]"
  35. 40040 poke44,8:poke8*256,0:poke55,0:poke56,160:poke53272,20:clr:new
  36. 40050 print"[146]load"q$a$q$","dv""
  37. 40055 forx=1to4:poke630+x,asc(mid$(r$,x)):next:poke198,4:goto40040
  38. 41000 poke53280,0:poke53281,0:poke53272,22:print"[147]"
  39. 41002 poke214,14:print
  40. 41004 printtab(1)"[155]                                     "
  41. 41005 forx=1to6
  42. 41006 printtab(1)"[152]                                     "
  43. 41007 next
  44. 41013 printtab(1)"[151]                                     "
  45. 41020 forx=1to4:reada$:poke214,15+x:print
  46. 41022 printtab(19-len(a$)/2)"[152]"a$
  47. 41024 next
  48. 41030 t=ti+60
  49. 41031 ift>tithen41031
  50. 41032 print"":return
  51. 41050 data"[205] [193] [200] [202] [207] [206] [199]
  52. 41051 [131]"by (NULL)obert peek. lenook
  53. 41052 data"(c) 2000 by [202] & [198] [208]ublishing, [201]nc.
  54. 41053 [131]"www.loadstar.com
  55.