home *** CD-ROM | disk | FTP | other *** search
- 1 rem strings.2
- 80 poke53281,15:poke63280,6
- 100 print"[147]"tab(14)"hangman ii"tab(50)"by matthew oldham"chr$(142)
- 110 dimbb$(21),ns(42),wp(42,6),wc(42),ck(20),al(25),hn(11),ln(11),dr(11)
- 120 fori=1to21:readbb$(i):nexti
- 130 fori=1to42:readns(i):forj=1tons(i):readwp(i,j):nextj:nexti
- 140 s=54272:pokes+5,0:pokes+6,240:pokes+24,15
- 150 fori=0to25:al(i)=1230+i:nexti
- 160 fori=1to11:readhn(i),ln(i),dr(i):nexti
- 170 poke53281,15
- 180 printchr$(31)
- 190 printchr$(147)
- 200 rem main loop
- 210 pv=0:fl=0:bw=0:tl=0:wd$=""
- 220 ifac>37thengosub370:goto250
- 230 rn=int(rnd(1)*42+1)
- 240 ifwc(rn)<>0then230
- 250 ac=ac+1:forj=1tons(rn):wd$=wd$+bb$(wp(rn,j)):nextj:tl=len(wd$)
- 260 wc(rn)=1:forj=1totl:ck(j)=0:nextj
- 270 ps=1884-int(tl/2):forj=0totl-1:pokeps+j,45:nextj
- 280 forj=0to39:poke1784+j,111:nextj
- 290 print" word";ac;"start"
- 300 getlt$:iflt$=""then300
- 310 pv=asc(lt$):ifpv<65orpv>90then300
- 320 goto400
- 330 goto300
- 340 print" congratulations! you escaped!!":forj=1to1500:nextj
- 350 print" do you want to play again?";
- 352 poke198,0:wait198,1:getag$:ifag$<>"y"andag$<>"n"then352
- 353 printag$
- 354 ifag$="y"then190
- 360 :
- 364 load"strings menu",8:end
- 370 ifac=42thenprint"[147] sorry, we're all out of words."
- 372 ifac=42thenfordl=1to500:next:goto360
- 380 forj=1to42:ifwc(j)=othenrn=j:return
- 390 nextj:return
- 400 l$=left$(wd$,1)
- 410 ifasc(l$)=pvandck(1)=0thenck(1)=1:fl=1:pokeps,pv-64
- 420 forj=2totl-1
- 430 m$=mid$(wd$,j,1)
- 440 ifasc(m$)=pvandck(j)=0thenck(j)=1:fl=1:pokeps+j-1,pv-64
- 450 nextj
- 460 r$=right$(wd$,1)
- 470 ifasc(r$)=pvandck(tl)=0thenck(tl)=1:fl=1:pokeps+tl-1,pv-64
- 475 forj=1totl:ifck(j)=othen480
- 476 nextj:goto340
- 480 iffl=1thenfl=0:goto300
- 490 sb=pv-65:pokeal(sb),pv-64:bw=bw+1
- 495 onbwgoto500,510,520,530,540,550,560,570
- 500 forj=1to10:poke1800+j,76:nextj:goto300
- 510 forj=1to9:poke1760+j,160:nextj:poke1770,101:goto300
- 520 forj=1to6:poke1722+j,67:nextj:poke1722,107:poke1729,115:goto300
- 530 poke1682,66:poke1689,66:goto300
- 540 poke1642,66:poke1649,66:goto300
- 550 forj=1to6:poke1602+j,67:nextj:poke1602,112:poke1609,110:goto300
- 560 poke1605,114:poke1645,93:goto300
- 570 poke1646,81:poke1686,91:poke1726,91
- 580 forj=1to11:pokes+1,hn(j):pokes,ln(j):pokes+4,17:fork=1todr(j):nextk
- 590 pokes+4,16:nextj:print" the word was... ";wd$" ":goto350
- 600 datain,re,co,pre,i,ca,d,t,s,e,f,r,n,en,ion,able,ce,a,any,m,ou
- 610 data5,6,20,10,12,18,5,4,20,5,10,12,3,20,1,17,3,2,9,8,4,20,5,9,8
- 620 data4,7,2,9,9,3,2,13,8,5,11,12,5,14,7,4,4,9,14,8,4,20,21,9,10,2,20,19
- 630 data3,13,5,17,2,3,1,3,3,9,8,6,2,11,10,12,14,17,5,9,8,2,10,8,3,8,2,10,4
- 640 data4,8,14,7,5,3,13,17,7,10,2,2,1,2,11,16,5,11,5,9,9,15,3,9,3,2,3,9,6
- 650 data13,3,12,5,17,4,18,3,12,13,2,6,2,3,20,5,2,3,8,21,12,4,12,21,8,10
- 660 data4,17,20,14,8,3,11,1,10,4,4,11,10,12,3,3,20,18,4,9,14,9,10,3,6,9
- 670 data8,2,20,14,3,8,14,16,6,4,6,12,5,21,9,5,11,12,18,6,9,4,9,1,17,2,5
- 680 data3,13,9,8,16,22,96,400,22,96,400,22,96,150,22,96,400,28,49
- 690 data400,25,30,150,25,30,400,22,96,150,22,96,400,22,96,150,22,96,400
-