home *** CD-ROM | disk | FTP | other *** search
- 5 rem scrambled words 64
- 10 si=54272:kp=0
- 15 poke53280,1:poke53281,1:poke646,6
- 20 dim wl$(30),ri(30)
- 25 gosub455:input"how many players";pl:ifpl=0thenpl=1
- 30 input"how many words to enter";nw:ifnw=0thennw=1
- 35 dimwd$(pl-1,nw-1),wl(pl-1,nw-1),n$(pl-1),ps(pl-1)
- 40 fork=0topl-1
- 45 gosub455:print"player";k+1;"'s name";:inputn$(k)
- 50 forx=0tonw-1
- 55 print""n$(k)"!"
- 60 print"enter one word or phrase to be scrambled";
- 65 print" (limited to 30 characters)"
- 70 print"[173]";:forj=0to29:print"[195]";:next:print"[189]"
- 75 print"";:gosub365
- 80 l=len(w$):ifl>30thengosub455:goto55
- 85 ifl=0then75
- 90 ifl=1then75
- 95 gosub465:gosub470:ifr=1thengosub465:goto75
- 100 wd$(k,x)=w$:wl(k,x)=l:nextx,k
- 105 forz=0tonw-1:yy=0:fory=pl-1to0step-1:yy=yy+1:gosub455
- 110 w$=wd$(y,z):l=wl(y,z):sc=ps(yy-1):ws=l*200
- 115 print""tab(14)"scrambling[146]"
- 120 forj=1tol:wl$(j)=mid$(w$,j,1):next
- 125 forj=1tol:ri(j)=0:next:gosub320:gosub345:forj=1tol
- 130 i=int(rnd(0)*l)+1
- 135 forc=1toj:ifri(c)=ithenc=j:nextc:goto130
- 140 nextc:ri(j)=i:nextj
- 145 sw$="":forj=1tol:sw$=sw$+wl$(ri(j)):next:ifsw$=w$then125
- 150 gosub455:gosub485:c=(38-l)/2
- 155 print""tab(c);:print"[221]";sw$;"[221]"
- 160 printtab(c)"[173]";
- 165 forj=1tol:print"[195]";:next:print"[189]"
- 170 printtab(c)"[221]";
- 175 forj=1tol:print"[209]";:next:print"[221]"
- 180 printtab(c)"[173]";
- 185 forj=1tol:print"[195]";:next:print"[189]"
- 190 e=0:forn=1tol
- 195 print" select letter for position no.";n;""
- 200 getl$:ifl$=""then200
- 205 print""tab(19)""l$"[146]"
- 210 ifl$=wl$(n)then225
- 215 e=e+1:gosub320:gosub355:print"number of flubs =";e;""
- 220 goto195
- 225 forj=1tol:ifri(j)=ntheni=j:j=l:next:goto235
- 230 next
- 235 gosub320:gosub325
- 240 sl$=left$(sw$,i-1):sr$=right$(sw$,l-i):sw$=sl$+"[209]"+sr$
- 245 print"":printtab(c)"[221]";sw$;"[221]"
- 250 print"";:printtab(c)"[221]";
- 255 forj=1ton:printwl$(j);:next:next
- 260 print" "
- 265 ws=ws-50*e:b=(l-e)*25:ifb<0thenb=0
- 270 sc=sc+ws+b:print"word score =";ws+b;""
- 275 ps(yy-1)=sc:gosub490
- 280 print""tab(7)"type return to continue!
- 285 [161]a$:[139]a$[178]""[167]285
- 290 [139]a$[179][177][199](13)[167]285
- 295 [141]455:[130]y,z
- 300 [141]455:[141]340:[141]495
- 305 [153]"play again? (y/n)";:[133]a$
- 310 [139]a$[178]"y"[167][156]:[137]10
- 315 [153]"load":[128]
- 320 [141]340:[151]si[170]24,15:[142]
- 325 [151]si[170]5,12:[151]si[170]6,9
- 330 kp[178]kp[172](kp[179]10)[172]([171]1)[170]1:[151]si[170]1,kp[172]1.5[170]kp:[151]si[170]15,19[170]kp:[151]si[170]4,21
- 335 [129]q[178]1[164]5:[151]si,q[172]25:[130]:[142]
- 340 [129]r[178]si[164]si[170]24:[151]r,0:[130]:[142]
- 345 [151]si[170]5,50:[129]x[178]1[164]50:[151]si[170]1,[187](x)[172]32[170]50:[151]si[170]4,17
- 350 [129]a[178]1[164]10:[130]:[151]si[170]4,16:[130]:[142]
- 355 [151]si[170]6,240:[151]si[170]4,17:[129]a[178]1[164]10:[129]x[178]1[164]255[169]25:[151]si[170]1,x:[130]:[130]
- 360 [151]si[170]4,32:[142]
- 365 [153]"";
- 370 w$[178]"":cc%[178]0
- 375 [141]440:[139]a$[178][199](13)[167][142]
- 380 [139]a$[178][199](34)[167]375
- 385 [139]a$[179][199](32)[167]375
- 390 [139]a$[177][199](127)[167]375
- 395 [137]435
- 400 [141]440:[139]a$[178][199](13)[167][142]
- 405 [139]a$[178][199](20)[167]425
- 410 [139]a$[179][199](32)[176]a$[177][199](127)[167]400
- 415 [139]a$[178][199](34)[167]400
- 420 [137]435
- 425 cc%[178]cc%[171]1:[139]cc%[179]0[167]370
- 430 w$[178][200](w$,cc%):[153]"cmd cmd";:[137]400
- 435 [153]a$;:w$[178]w$[170]a$:cc%[178]cc%[170]1:[137]400
- 440 [153]" wait";:[129]j[178]0[164]50:[161]a$:[139]a$[179][177]""[167]j[178]50:[130]:[137]450
- 445 [130]:[153]"cmd cmd";:[129]j[178]0[164]50:[130]:[137]440
- 450 [153]"cmd cmd";:[142]
- 455 [153]"load"[163]12)"scrambled words"
- 460 [153][163]12)"usrusrusrusrusrusrusrusrusrusrusrusrusrusrusr":[142]
- 465 [153]" ";:[142]
- 470 [129]j[178]1[164]l:wl$(j)[178][202](w$,j,1):[130]
- 475 r[178]0:[129]j[178]2[164]l:[139]wl$(1)[179][177]wl$(j)[167]j[178]l:[142]
- 480 [130]:r[178]1:[142]
- 485 [153]""n$(yy[171]1)"'s turn:"
- 490 [153]"score:"
- 495 [129]zz[178]0[164]pl[171]1:nn$[178]n$(zz):ll[178][195](nn$):[129]xx[178]ll[164]10:nn$[178]nn$[170]" ":[130]
- 500 [153]""nn$"wait "ps(zz)"":[130]
- 505 [153]"":[142]
-