home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 202
/
202.d81
/
b.mahjong
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
2KB
|
55 lines
0 rem mahjong boot * rbcook * 10.93
100 ifdv<>0then130
110 dv=peek(186):ifdv<8thendv=8
120 gosub41000:load"obj.mahjong",dv,1
130 sys4608
140 poke53280,1:poke53281,1:poke198,0
150 print"[147]"tab(7)"[152][\\\\\\\\\\\\\\\\\\\\\\\]"
160 printtab(7)"# m a h j o n g [152]$[144]@"
170 printtab(7)"[152]&+++++++++++++++++++++++'[144]@"
180 printtab(7)"[152]# $[144]@"
190 printtab(7)"[152]# f1 [144]solitaire game [152]$[144]@"
200 printtab(7)"[152]# f3 [144]new tournament [152]$[144]@"
210 printtab(7)"[152]# f5 [144]restart tournament [152]$[144]@"
220 printtab(7)"[152]# f7 [144]tournament game [152]$[144]@"
230 printtab(7)"[152]# f8 [144]return to loadstar [151]$[144]@"
240 printtab(7)"[152]# $[144]@"
250 printtab(7)"[152]^!!!!!!!!!!!!!!!!!!!!!!!_[144]@"
260 printtab(7)"[144] @@@@@@@@@@@@@@@@@@@@@@@@@":ifa$="[133]"then300
270 printtab(14)"[151]player up%[150]"a+1+(a=8)*8""
280 forl=1to7step2:printtab(4)"[144]player[152]"l"[157][144]%[154]"sc(l);
290 printtab(22)"[144]player[152]"l+1"[157][144]%[154]"sc(l+1):next
300 geta$:ifa$="[133]"thensys4614:goto140
310 ifa$="[134]"thenpoke253,0:poke254,0:sys4614:forl=1to8:sc(l)=0:next:a=0:goto360
320 ifa$="[135]"thensys4614:a=0:goto360
330 ifa$="[136]"thensys4618:goto360
340 ifa$="[140]"then40000
350 goto300
360 a=a+1+(a=8)*8:sc(a)=sc(a)+peek(252)*256+peek(251):goto140
10000 dv=peek(186):n$="b.mahjong":open15,dv,15,"s0:"+n$:close15:saven$,dv:end
40000 poke53280,0:poke53281,0:dv=peek(186):q$=chr$(34):print"[144][147]";
40010 a$="hello connect":r$=chr$(13)+"r[213]"+chr$(13):q$=chr$(34)
40020 close2:open2,dv,2,a$:get#2,b$:close2:ifst=0then40050
40030 close15:open15,dv,15,"i0":input#15,en:close15
40035 poke53280,14:poke53281,6:print"[147][154]"
40040 poke44,8:poke8*256,0:poke55,0:poke56,160:poke53272,20:clr:new
40050 print"[146]load"q$a$q$","dv""
40055 forx=1to4:poke630+x,asc(mid$(r$,x)):next:poke198,4:goto40040
41000 poke53280,0:poke53281,0:poke53272,22:print"[147]"
41002 poke214,14:print
41004 printtab(1)"[155] "
41005 forx=1to6
41006 printtab(1)"[152] "
41007 next
41013 printtab(1)"[151] "
41020 forx=1to4:reada$:poke214,15+x:print
41022 printtab(19-len(a$)/2)"[152]"a$
41024 next
41030 t=ti+60
41031 ift>tithen41031
41032 print"":return
41050 data"[205] [193] [200] [202] [207] [206] [199]
41051 [131]"by (NULL)obert peek. lenook
41052 data"(c) 2000 by [202] & [198] [208]ublishing, [201]nc.
41053 [131]"www.loadstar.com