home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1991 September & October
/
rerun-1991-09-10.d64
/
scramble
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
7KB
|
198 lines
0 rem * * * * scramble * v 05.91 * * * * * * * * * robert b. cook * * * * *
5 poke 646,0:poke 53281,1:poke 53280,1
10 print"[147] word scramble 64
20 [153]:[153]"to play word scramble 64, up to
30 print"twelve players can enter their names,
40 [153]"then press the '+' key.
50 print:print"the letters on the screen are
60 [153]"then scrambled and everyone has
70 print"three minutes to write down as many
80 [153]"words as they can create from the
90 print"letters on the screen.
91 [153]"when time is up, compare word lists
92 print"and cancel all duplicate words.
93 [153]"the program provides the necessary
94 print"scoring information.
95 [153]:[153]"see the documentation for more specific":[153]"information.
96 print:print"press a key to continue...
97 [161]a$:[139] a$[178]"" [167] 97
100 [151]52,56:[151]55,0:[151]56,56:[156]:[153]"load"
102 [141]262 initial:[141]394 screen
104 [129]l[178]1[164]25:[158]820,sx(l),sy(l):[153]ltr$(l):[130]
106 [158]820,1,21:[153]"cont valnter names "
108 [158]820,1,23:[153]"^cont (NULL)tarts chr$ame"
110 t[178]1:[141]230
112 [158]820,1,7[170]t:il[178]7:in$[178]plr$(t):[141]246:plr$(t)[178]in$
114 t[178]t[170]1[170](t[178]12)[172]12:[139]in$[178]""[167]t[178]1
116 [139]g$[179][177]"^"[167]112
118 [129]l[178]1[164]12:np[178]np[171](pl$(l)[179][177]""):[130]
120 [158]820,0,21:[153]cb$:[153]"cont (NULL)crambling":[153]"on"cb$""
122 [141]238:r3[178][187]([171]ti)
124 [129]l[178]0[164]99
125 r1[178][181]([187](1)[172]25[170]1):r2[178][181]([187](1)[172]25[170]1)
126 t[178]swp(r1):swp(r1)[178]swp(r2):swp(r2)[178]t
127 r3[178][181]([187](1)[172]6[170]1)
128 [158]820,sx(r1),sy(r1):[153]cl$[170]ltr$(die(swp(r1),r3))
129 r3[178][181]([187](1)[172]6[170]1)
130 [158]820,sx(r2),sy(r2):[153]cl$[170]ltr$(die(swp(r2),r3))
131 [130]
132 [151]sr,215:[151]wv,33
134 [129]l[178]1[164]15:[158]820,14,20[171]l:[153]"open ":[151]hf,l[172]8
136 [129]k[178]0[164]35:[130]:[130]:[151]wv,32:[141]238
146 [158]820,0,22:[153]cb$
148 [158]820,4,21:[153]"waitcontcosnewlogcosnewlog":[153]" orfre ":[153]"onrndfre*rndfre*"
150 [129]l[178]1[164]2:[141]238:[141]230:[130]
152 tm[178]1:et[178]0
154 [158]820,14,5[170]et:[153]"open"clk$(tm):[141]222:ti$[178]"000000"
156 tm[178]tm[170]1[170](tm[178]8)[172]8:[139]tm[178]1[167]et[178]et[170]1:[139]et[178]14[167][129]l[178]1[164]3:[141]230:[130]
158 [139]ti[173]60[179]1.2[167]158
160 [139]et[179]15[167]154
162 [158]820,3,22:[153]"cont(NULL)ime's (NULL)p":t[178]0
164 [129]l[178]1[164]12:[141]230:t[178]1[171]t:[151]53281,t:[141]238:[130]:[129]l[178]0[164]1999:[130]
166 [158]820,0,22:[153]cb$
168 [158]820,7,6:[153]"sys(NULL)oints"
170 [158]820,1,21:[153]"contvalnter points"
172 [158]820,1,23:[153]"^cont ascor totals"
174 [153]"def3=1 4=2 5=3":[153]" ":[153]"on6=4 7=6 8+=10"
176 [129]l[178]1[164]np:pt$(l)[178]"":[158]820,10,7[170]l:[153]"sys ":[130]
178 t[178]1:[141]230
180 [158]820,10,7[170]t:il[178]2:in$[178]pt$(t):[141]246:pt$(t)[178]in$
182 t[178]t[170]1[170](t[178]np)[172]np:[139]plr$(t)[178]""[167]t[178]1
184 [139]g$[179][177]"^"[167]180
186 [129]l[178]1[164]np:scr(l)[178]scr(l)[170][197](pt$(l)):[130]
188 [129]l[178]1[164]np[171]1:[129]k[178]l[164]1[169][171]1
190 [139]scr(k)[178][177]scr(k[170]1)[167]198
192 t[178]scr(k):scr(k)[178]scr(k[170]1):scr(k[170]1)[178]t
194 t$[178]plr$(k):plr$(k)[178]plr$(k[170]1):plr$(k[170]1)[178]t$
196 [130]
198 [130]l
200 [158]820,7,6:[153]"sys (NULL)core"
202 [129]l[178]1[164]np:[158]820,1,7[170]l
204 [153]"sys"[200](plr$(l)[170]" ",7),[201](" "[170][196](scr(l)),3):[130]
206 [153]"defortantantantantantantantan^ ":[153]"(NULL)(NULL)len(NULL)atn(NULL)peek(NULL)val(NULL)":[153]"on /tantantantantantantantanexp "
208 [158]820,1,21:[153]"^cont (NULL)o (NULL)cramble"
210 [158]820,1,23:[153]"_cont atn new game"
212 [141]230:[141]230:[151]198,0
214 [161]g$:[139]g$[179][177]"^"[175]g$[179][177]"_"[167]214
216 [139]g$[178]"^"[167]120
217 [129]l[178]1[164]np:scr(l)[178]0:[158]820,10,7[170]l:[153]"sys ":[130]
218 [137]106
220 [178][178][178] [164]ck [178][178][178]
222 [151]sr,10:[151]wv,129:[151]hf,254:[151]at,4
224 [129]k[178]0[164]199:[130]:[151]wv,128
226 [142]
228 [178][178][178] beep [178][178][178]
230 [151]sr,240:[151]wv,17:[151]hf,50:[151]lf,35:[151]at,0
232 [129]s[178]1[164]99:[130]:[151]wv,16:[151]sr,0
234 [142]
236 [178][178][178] boop [178][178][178]
238 [151]vl,15:[151]at,0:[151]sr,225:[151]wv,17:[151]hf,33:[151]lf,33
240 [129]s[178]1[164]99:[130]:[151]wv,16
242 [142]
244 [178][178][178] [133] routine [178][178][178]
246 cr[178][195](in$):[153]"sys"in$;
248 [153]"andcmd";
250 [161]g$:[139]g$[178]""[167]250
252 [139]g$[178][199](13)[176]g$[178]"^"[167][153]" ":[142]
254 [139]g$[178][199](20)[175]cr[177]0[167]cr[178]cr[171]1:in$[178][200](in$,[195](in$)[171]1):[153]"cmd cmdcmd";
256 [139](g$[179]" "[176]g$[177]"]")[175](g$[179]"tan"[176]g$[177]"(NULL)")[176]g$[178][199](34)[176]cr[178]il[167]248
258 cr[178]cr[170]1:in$[178]in$[170]g$:[153]g$;:[137]248
260 [178][178][178] initialize [178][178][178]
262 [134] l,k,j,c,tm,et,il,cr,r1,r2,r3,t,t1,sa,pa,in$,g$
264 [134] sx(25),sy(25),swp(25),die(25,6)
266 [134] ltr$(26),clk$(8),plr$(12),pt$(12),scr(12)
268 up$[178]"onon":cl$[178]" cmdcmdcmd cmdcmdcmd cmdcmdcmdcmdonon":cb$[178]"cont "
270 lf[178]54272:hf[178]54273:wv[178]54276:at[178]54277:sr[178]54278:[151]54296,15
272 [151]56334,0:[151]1,51
274 [151]781,9:[151]782,0:[151]88,1:[151]89,64:[151]90,1:[151]91,224
276 [158]41964:[151]1,55:[151]56334,1:[151]53272,30
278 [129]l[178]1[164]26:[135]ltr$(l):[130]
280 [129]l[178]1[164]8:[135]clk$(l):[130]
282 [129]l[178]1[164]25:[135]sx(l):[130]
284 [129]l[178]1[164]25:[135]sy(l):[130]
286 [129]l[178]1[164]25:[129]k[178]1[164]6
288 [135]die(l,k):[130]:[130]
290 [129]l[178]0[164]32:[135]k:[151]820[170]l,k:[130]
292 [129]l[178]1[164]21:[135]sa:[129]k[178]0[164]7
294 [135]pa:[151]sa[170]k,pa:[130]:[130]
296 [129]l[178]1[164]25:swp(l)[178]l:[130]
298 [142]
300 [178][178][178] [136]ter [131] ===
302 [131] "waitcosnewlogcmdcmdcmd new cmdcmdcmd ","wait newlogcmdcmdcmd tosqrcmdcmdcmd fre*","waitcosnewlogcmdcmdcmd cmdrndfre*"
304 [131] "wait newlogcmdcmdcmd cmdcmdcmd fre*","wait newnewcmdcmdcmd newcmdcmd frefre","wait newnewcmdcmdcmd newcmdcmd "
306 [131] "waitcosnewlogcmdcmdcmd orfrecmdcmdcmdrndfre*","wait cmdcmdcmd new cmdcmdcmd ","waitnew newcmdcmd cmdcmdfre fre"
308 [131] "waitnew cmd cmdcmdcmdrndfre*","wait stepstepcmdcmdcmdwait (NULL)wait(NULL)cmdcmdcmd ","wait cmd cmd frefre"
310 [131] "wait not cmdcmdcmd exp cmdcmdcmd ","wait (NULL) cmdcmdcmd (NULL)wait cmdcmdcmd ","waitcosnewlogcmdcmdcmd cmdcmdcmdrndfre*"
312 [131] "wait newlogcmdcmdcmd fre*cmdcmdcmd ","waitcosnewlogcmdcmdcmd cmdcmdcmdrndfresin(NULL)","wait newlogcmdcmdcmd tosqrcmdcmdcmd "
314 [131] "waitcosnewlogcmdcmdcmdandspc(usrcmdcmdcmdrndfre*","waitnew newcmdcmd cmd ","wait cmdcmdcmd cmdcmdcmdrndfre*"
316 [131] "wait cmdcmdcmd cmdcmdcmd(NULL)waitnotstep","wait cmdcmdcmd @ cmdcmdcmdrnd(NULL)*","(NULL)waitnotstepcmdcmdcmdwaitstep(NULL)(NULL)cmdcmdcmd "
318 [131] "wait cmdcmdcmd(NULL)waitnotstepcmdcmdwait ","waitnew*stepcmdcmdcmdwaitstepstepcmdcmdwait frefre"
320 [131] "tab(","usr","fre","waitnew","waitpos","waitand","waitto","wait "
322 [178][178][178] x[173]y [131] ===
324 [131] 16,21,26,31,36,16,21,26,31,36,16,21,26,31,36
326 [131] 16,21,26,31,36,16,21,26,31,36
328 [131] 1,1,1,1,1,6,6,6,6,6,11,11,11,11,11,16,16,16,16,16,21,21,21,21,21
330 [178][178][178] tiles [131] ===
332 [131] 18,9,6,15,2,24 ,7,20,14,22,5,9 ,6,5,8,9,5,25 ,10,13,2,17,1,15
334 [131] 1,9,15,1,20,3 ,16,19,14,8,5,9 ,7,12,18,23,21,9 ,19,16,20,12,21,5
336 [131] 3,12,19,18,5,1 ,23,4,19,14,15,5 ,3,4,16,13,1,5 ,14,11,4,20,21,15
338 [131] 13,19,18,8,1,15 ,7,11,25,12,21,5 ,2,20,12,25,1,9 ,25,4,22,14,5,1
340 [131] 2,6,12,16,1,9 ,3,7,11,14,5,15 ,4,8,13,18,1,5 ,2,7,14,19,5,21
342 [131] 3,10,16,20,1,15 ,4,12,19,23,5,25 ,8,14,19,20,9,21 ,12,18,1,5,7,15
344 [131] 13,20,1,5,9,25
346 [178][178][178] [153] @ [131] ===
348 [131] 32,253,174,32,158,183,134,2,224,40,176,16,32,253,174,32,158,183
350 [131] 224,25,176,6,164,2,