home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 14
/
014.d81
/
verbosity
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
5KB
|
161 lines
10 gosub1430: gosub1230
20 dl=500:dimcd(98):print"":dimbd(8,8): dimqc(20,2),ps(5),nm$(5):goto40
30 save"@0:color",8:end
40 gosub740: cd=rnd(-ti):poke53280,0:poke53281,0:print"[147]":cn=0:gosub400
50 print"[153][159]wait, while the board is generated.": qc=0
60 gosub660
70 fort=1tosz:forp=1tosz:print"";t
80 tt=int(98*rnd(1)+1):gosub140:bd(t,p)=cd(tt):nextp:nextt
90 if qc=0 then160
100 fora=1 to qc: t=q(a,1): p=q(a,2)
110 if p+1>sz then bd(t,p-1)=21:nexta :goto160
120 bd(t,p+1)=21:nexta:goto160
130 rem q counter & place saver *******
140 if tt<>70 then return
150 qc=qc+1:q(qc,1)=t:q(qc,2)=p:return
160 prints$;c$;t$:printc$;
170 fort=1tosz:print"[221]";: forp=1tosz:print"[155]"chr$(bd(t,p)+64)"[221]";:nextp
180 print:printc$;l$ :printc$;: nextt: printb$
190 print"";
200 if f$="r" then return
210 print"[156]end";:cn=0
220 fort=1todl:nextt:cn=cn+1:ifcn<41thenprint".";:ifcn<40 goto220
230 print"[147][158]round over... tabulate score."
240 print" 2 points for each 2 letter word.
250 [153]" 3 points for each 3 letter word."
260 [153]" 5 points for each 4 letter word."
270 [153]" 10 points for each 5 letter word."
280 [153]" words over 5 letters count 5 points"
290 [153]" for each additional letter. "
300 [153]" hit 'r' to review board"
310 [153]" hit 's' to tally score"
320 [161]f$:[139] f$[178]"" [167]320
330 [139] f$[178]"s" [167] [141]1020: [139] ag [167] [153]"load":[137]50
340 [139] f$[178]"a" [167] [138]
350 [139] f$[179][177]"r"[167]320
360 [141]160
370 [153]" syspress any key"
380 [161] d$:[139]d$[178]"" [167]380
390 [137]230
400 [129]t[178]1 [164] 9:cd(t)[178]1:[130]t
410 [129]t[178]10[164]11:cd(t)[178]2:[130]t
420 [129]t[178]12[164]13:cd(t)[178]3:[130]t
430 [129]t[178]14[164]17:cd(t)[178]4:[130]t
440 [129]t[178]18[164]29:cd(t)[178]5:[130]t
450 [129]t[178]30[164]31:cd(t)[178]6:[130]t
460 [129]t[178]32[164]34:cd(t)[178]7:[130]t
470 [129]t[178]35[164]36:cd(t)[178]8:[130]t
480 [129]t[178]37[164]45:cd(t)[178]9:[130]t
490 [129]t[178]46[164]46:cd(t)[178]10:[130]t
500 [129]t[178]47[164]47:cd(t)[178]11:[130]t
510 [129]t[178]48[164]51:cd(t)[178]12:[130]t
520 [129]t[178]52[164]53:cd(t)[178]13:[130]t
530 [129]t[178]54[164]59:cd(t)[178]14:[130]t
540 [129]t[178]60[164]67:cd(t)[178]15:[130]t
550 [129]t[178]68[164]69:cd(t)[178]16:[130]t
560 [129]t[178]70[164]70:cd(t)[178]17:[130]t
570 [129]t[178]71[164]76:cd(t)[178]18:[130]t
580 [129]t[178]77[164]80:cd(t)[178]19:[130]t
590 [129]t[178]81[164]86:cd(t)[178]20:[130]t
600 [129]t[178]87[164]90:cd(t)[178]21:[130]t
610 [129]t[178]91[164]92:cd(t)[178]22:[130]t
620 [129]t[178]93[164]94:cd(t)[178]23:[130]t
630 [129]t[178]95[164]95:cd(t)[178]24:[130]t
640 cd(96)[178]25:cd(97)[178]25:cd(98)[178]26
650 [142]
660 c$[178]"":s$[178]"load"
670 l$[178]"-tan(NULL)tan(NULL)tan(NULL)tan(NULL)tan(NULL)tan(NULL)tan(NULL)tan<":t$[178]"(NULL)tan=tan=tan=tan=tan=tan=tan=tanright$":b$[178]"onmid$tan>tan>tan>tan>tan>tan>tan>tan(NULL)"
680 l$[178][200](l$,3)[170][201](l$,sz[172]2)
690 t$[178][200](t$,3)[170][201](t$,sz[172]2)
700 b$[178][200](b$,4)[170][201](b$,sz[172]2)
710 s$[178][200](s$,12[171]sz)
720 c$[178][201](c$,14[171][182](4[171]sz))
730 [142]
740 [143] *** set up ***
750 [151]53280,5 :[151]53281,4
760 [153]"load how big of a board would":[153][166]11) "you like (4-8)?"
770 [161] sz$:[139]sz$[178]"" [167]770
780 [139] sz$[177]"3"[175]sz$[179]"9"[167]800
790 [153]"stopinvalid size":[129]t[178]1[164]1000:[130]t:[151]198,0: [137]760
800 sz[178][197](sz$)
810 [153]"short, medium, or long time delay?"
820 [161] l$: [139] l$[178] "" [167]820
830 [139] l$[178]"s"[176]l$[178]"m"[176]l$[178]"l"[167]860
840 [153]"stoptry again...":[129]t[178]1[164]1000:[130]t
850 [153]"on ": [137]810
860 [153]"loadhow many players(1-5)": [153]""
870 [161] t$: [139] t$[178] "" [167]870
880 [139] t$[179]"1"[176]t$[177]"5"[167][153]"stoptry again...":[129]t[178]1[164]800:[130]t:[137]860
890 np[178][197](t$)
900 [129]t[178]1[164]np
910 [153]"player"t" enter your name";:[133]nm$(t): nm$(t)[178][200](nm$(t),8)
920 [130]t
930 [139] l$[178]"s" [167] f[178]1
940 [139] l$[178]"m" [167] f[178]2
950 [139] l$[178]"l" [167] f[178]3
960 dl[178]100[172]sz[172]f[172]1.25
970 [133]"what score do you want to play to";ms
980 [139] ms[177][178]25 [175] ms[179][178]1000 [137]1010
990 [153]"stopbe real!(25-1000)"
1000 [129]t[178]1 [164] 1000: [130]t:[153]"on ":[137]970
1010 [142]
1020 [143] tally score ***
1030 d$[178]" cont"
1040 [129] t[178]1 [164] np:[153] d$ nm$(t)"'s score: cmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmdcmd"ps(t)
1050 [133] "enter this round's cmdcmdcmdcmdcmdcmdcmdcmd";rs
1060 ps(t)[178]ps(t)[170]rs : [130] t
1070 ag[178][171]1:wc[178]0: b$[178]" "
1080 [129]t[178]1[164]np:[139] ps(t)[177][178]ms[167] ag[178]0: wc[178]wc[170]1
1090 [130]t: [139] wc[177]0 [167]1150
1100 [142]
1110 [153]"loadopentie game calls for a playoff round!"
1120 [153]"all players participate!"
1130 [129] t[178]1 [164] 1000: [130]t:ag[178][171]1
1140 [142]
1150 hs[178]0:[129]t[178]1[164]np: [139] ps(t)[177]hs [167] hs[178]ps(t):ww[178]t:[137]1170
1160 [139] ps(t)[178]hs [167] ag[178][171]1: [137]1110
1170 [130]t
1180 [153]"def "nm$(ww)" wins!"b$
1190 [153]" play again?(y/n) "
1200 [161] t$: [139]t$[178]"" [167]1200
1210 [139] t$[178]"y" [167] [138]
1220 [153]"load":[137]63000
1230 [143] instructions *****************
1240 [153]"load"
1250 [153]" this is an enjoyable word search game"
1260 [153]"for one to five players. the computer "
1270 [153]"generates a square board of letters (you"
1280 [153]"pick the size!) that is full of words."
1282 [153]" hit a key
1284 poke198,0:wait198,1:poke198,0
1290 print"[147] to play, just follow the screen prompts"
1300 print"to set up the game. when competing with"
1310 print"another person(s), each of you write "
1320 print"down the words you find. to total your "
1330 print"score, first mark out the words that "
1340 print"everyone else found, then add yours up,"
1350 print"according to the instructions on the "
1360 print"screen. be sure to look for words in
1370 [153]"any snake-like directions you can find "
1380 [153]"them, as long as you don't use one let-"
1390 [153]"ter twice in the same word. "
1400 [153]" hit a key gently "
1410 [161] t$: [139] t$[178]"" [167]1410
1420 [142]
1430 t$[178]" ":c[178]0:c$[178]"":[153]"load":[151]53281,0
1440 [153][166]7)""t$:[153][166]7)" (NULL)val(NULL)peek(NULL)(NULL)right$(NULL)(NULL) wait"
1450 [153][166]7)""t$:[153]:[153][163]18)"by"
1460 [153]:[153][166]14)"mid$oe chr$arrett"
1470 [153]:[153][166]12)"lenopyright 1985"
1480 [153]:[153]:[153]:[153]" (NULL)(NULL)atnstr$(NULL)(NULL)atn(NULL) is not public domain."
1490 [153]:[153]" (NULL)lease respect the author's rights."
1500 [153]:[153]" (NULL)ress space bar to continue."
1510 [129]cc[178]1[164]48:[161]k$:[139]k$[178]" "[167]1540
1520 [139]cc[178]1[167][153][202](c$,c[170]2,1)"onon";:c[178][168](c)
1530 [130]:[137]1500
1540 [153]"load"[199](142)
1550 [153]c$:[142]
63000 [143] connect back to l.s.
63010 [153]"loadload"[199](34)"payload"[199](34)",8":[153]"run"
63020 [151]631,13:[151]632,13:[151]198,2: [128]