home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 32
/
032.d81
/
wheel
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
11KB
|
292 lines
4 gosub60100:printchr$(142);
5 poke53280,.:poke53281,1:clr:gosub1745:print"[147]";
15 r=1:y=55655:rv=1:u=1956:np=22
25 f(1)=1224:f(2)=1238:f(3)=1252:z=54272:rn=rnd(-ti):dimw(3,24):zz$="aeiou"
35 forn1=1to3:forn2=1to24:reada:w(n1,n2)=a:next:next
45 forn=1to3:m(n)=0:next
55 print"[147] player 1 player 2 player 3"
65 print" "m(1)" "
75 print""tab(15)m(2)" "
85 print""tab(29)m(3)" "
95 forn=1to3:iffs(p)>0thenforj=1tofs(p):x=j*2+f(p):pokex,81:pokex+z,0:next
105 next
115 i=int(np*rnd(1)+1):forn=1tonp:readb$,a$:ifn=ithenp$=a$:t$=b$:ul$=""
125 next
135 print"used letters:"
145 print"";:gosub1735
155 print"";:gosub1735
160 print" "
165 print""tab((40-len(p$))/2)p$:print""t$" "
170 d=1383+(40-len(p$))/2-80:y=55655+(40-len(p$))/2-80:a=1383:b=55655
175 forn=0to39:pokea-n,160:pokeb-n,.:pokea+41+n,160:pokeb+41+n,.:next
185 forn=1to40:ifpeek(a+n-80)=32thenpokea+n,160:pokeb+n,.:goto195
190 pokea+n,209:pokeb+n,.
195 next
205 forn=1tolen(p$):ifpeek(d+n)=39orpeek(d+n)=45thenpokey+n+80,0:q5=1
210 ifq5=1thenq5=.:pokey+n+80-54272,39+128
215 next
225 print" hit n[146] for new puzzle, p[146] to play puzzle":poke198,.
235 getg$:ifg$<>"n"andg$<>"p"then235
245 ifg$="n"thenrestore:forn=1to72+np*(r-1):readxp$:next:goto115
250 lu$=""
255 gosub1725:print"round"r:forn=1to1200:next:gosub1725
260 md=.:sb=.:fora=1tolen(p$):a$=mid$(p$,a,1):ifa$>="a"anda$<="z"thenmd=md+1
261 forb=1tolen(zz$):ifa$=mid$(zz$,b,1)thensb=sb+1
262 next:next
265 p=r:print"player"p"starts the round":forn=1to1200:next
270 goto605
275 gosub1725
285 print" hit the space bar to stop the wheel"
295 print"[144]";tab(14)w(r,rv)
305 getg$:ifg$=" "then335
315 rv=rv+1:ifrv=25thenrv=1
325 gosub1725:goto295
335 print"";:gosub1735
345 on-(w(r,rv)=1)-2*(w(r,rv)=2)-3*(w(r,rv)=3)goto1065,1095,1175
355 forn=1to1500:next
365 gosub1725:print"letter:[154][164][157]";
370 getl$:ifl$=""then370
371 printl$
375 ifasc(l$)<65orasc(l$)>90orlen(l$)<>1then365
380 forn=1tolen(lu$):ifl$<>mid$(lu$,n,1)then382
381 print"";l$" [154]has been called.":goto355
382 next
385 ifl$="a"orl$="e"orl$="i"orl$="o"orl$="u"then365
395 lu$=lu$+l$:forn=1tolen(p$)
415 ifchr$(peek(d+n)+64)=l$thengosub1305:pokey+n+80,0:l=l+1:tl=tl+1:q5=1:md=md-1
420 ifq5=1thenpokey+n+80-54272,peek(y+n-54272)+128:q5=.
425 ifpeek(d+n)=160then455
435 dn=peek(d+n):ifdn=1 or dn=5 or dn=9 or dn=15 or dn=21 then455
445 cn=cn+1
455 next
465 ifl=0thengosub1265:forq=1to999:next:gosub1725
475 co=cn-tl:gosub1725
485 m(p)=m(p)+l*w(r,rv)
495 print"";:gosub1735
505 print" "m(1)
515 print""tab(15)m(2)
525 print""tab(29)m(3)
535 ifmd-sb=0thenprint"there are only vowels left in the puzzle"
545 ifmd-sb=0thenforn=1to2000:next:gosub1725
555 ifcn=0thenforn=1to500:next:goto665
565 ul=ul+2:pokeu+ul,asc(l$)-64:pokeu+ul+54272,2
575 ifl=0andfs(p)>0thengosub1005
585 ifl>0then605
595 p=p+1:ifp=4thenp=1
605 print"[144]press q to quit."
610 print"player"p"[157]: [154]s[146]pin, g[146]uess the puzzle, or b[146]uy"
615 print"a vowel:[164][157]";
620 geto$:ifo$=""then620
621 printo$
622 ifo$="q"then60000
625 ifo$<>"s"ando$<>"g"ando$<>"b"then615
635 print" "
645 print" "
650 print" "
655 on-(o$="s")-2*(o$="b")goto1055,825
665 input"your guess";sp$:ifsp$<>p$thenp=p+1:ifp=4thenp=1
675 print""spc(67)
685 ifsp$<>p$thengosub1725:print"wrong!":forn=1to2000:next:gosub1725:goto575
690 gosub1725
695 print"*right!*":gosub1215:forn=0to39
700 if(peek(y+n)and15)=1thenpokey+n+80-54272,peek(d+n)+128
705 next:forn=1to1999:next:gosub1725:ifm(p)<200thenm(p)=200
715 l=0:tl=0:cn=1:ul=0:tm(p)=tm(p)+m(p)
725 gosub1725:print"totals after round":forn=1to700:next
735 print"";:gosub1735
745 print" "tm(1)
755 print""tab(15)tm(2)
765 print""tab(29)tm(3):print"":forn=1to2000:next:gosub1725
775 r=r+1:ifr=4thenprint"the game is over!":forn=1to2500:next:goto795
785 goto45
795 gosub1725:print"play again [y[154]/n[154]]"
800 getp$:ifp$<>"n"andp$<>"y"then800
805 ifp$="y"thenrun
815 clr:print"[147]"
820 goto60000
825 ifm(p)<250thenprint"you don't have enough money!":forn=1to1100:next
835 ifm(p)<250thengosub1725:goto605
845 m(p)=m(p)-250
855 print"";:gosub1735
865 print" "m(1)
875 ifmd-sb=.then535
880 print""tab(15)m(2)
885 print""tab(29)m(3)
895 print"vowel:[164][157]";
900 getv$:ifv$=""then900
905 ifasc(v$)<65orasc(v$)>90then895
915 ifv$<>"a"andv$<>"e"andv$<>"i"andv$<>"o"andv$<>"u"then895
920 printv$
925 forn=1tolen(p$)
935 ifpeek(n+y)<>0andchr$(peek(d+n)+64)=v$thenpokey+n+80,0:vl=vl+1:gosub1305:q5=1
936 ifpeek(n+y)<>0andchr$(peek(d+n)+64)=v$thenmd=md-1:sb=sb-1
940 ifq5=1thenq5=.:pokey+n+80-54272,peek(y+n-54272)+128
945 next
955 ul=ul+2:pokeu+ul,asc(v$)-64:pokeu+ul+54272,2
965 ifvl=0thengosub1725:gosub1265:print"there is no ";v$:forn=1to999:nextn
975 ifvl=0andfs(p)>0thengosub1005
985 ifvl=0thengosub1725:goto595
995 gosub1725:vl=0:goto605
1005 print"use free spin(y/n)?"
1015 getfs$:iffs$<>"y"andfs$<>"n"then1015
1025 gosub1725
1035 iffs$="n"thenreturn
1045 pokef(p)+2*fs(p),32:fs(p)=fs(p)-1:goto605
1055 ifmd-sb=.then535
1060 cn=0:co=0:l=0:forn=1to500:nextn:goto275
1065 gosub1725:print"";tab(14)"free spin":forn=1to1000:next:gosub1725
1075 fs(p)=fs(p)+1
1085 pokef(p)+2*fs(p),81:pokef(p)+2*fs(p)+z,0:forn=1to600:next:goto605
1095 gosub1725:print"";tab(14)"[144]bankrupt":gosub1185
1105 forn=1to500:next:gosub1725
1115 m(p)=0:l=0
1125 print"";:gosub1735
1135 print" "m(1)
1145 print""tab(15)m(2)
1155 print""tab(29)m(3)
1165 forn=1to500:nextn:goto575
1175 print"";tab(14)"[144]lose a turn":forn=1to1000:next:gosub1725:goto575
1185 si=54272:forsd=sitosi+24:pokesd,0:next:pokesi+24,79:pokesi+22,32
1195 pokesi+23,1:pokesi+5,199:pokesi+6,145:pokesi+4,17:forx=255to0step-4
1205 pokesi+1,x:pokesi,60:forq=1to20:nextq:nextx:pokesi+4,16:return
1215 si=54272:forsd=sitosi+24:pokesd,0:next:pokesi+24,79:pokesi+22,128
1225 pokesi+21,0:pokesi+23,1:pokesi+5,144:pokesi+6,243:pokesi+4,39
1235 pokesi+1,67:pokesi,15:forq=1to1500:next:pokesi+4,38:pokesi+1,84
1245 pokesi,125:pokesi+4,39:forq=1to1500:next:pokesi+4,38:pokesi+1,100
1255 pokesi,121:pokesi+4,39:forq=1to2000:next:pokesi+24,0:return
1265 si=54272:forsd=sitosi+24:pokesd,0:next:pokesi+24,79
1275 pokesi+5,128:pokesi+6,129:pokesi+4,39
1285 pokesi+1,7:pokesi,59:forq=1to250:next:pokesi+4,38
1295 print"there is no "l$".":return
1305 si=54272:forsd=sitosi+24:pokesd,0:next:pokesi+24,10
1315 pokesi+5,128:pokesi+6,128:pokesi+4,23:pokesi+1,38
1325 pokesi,59:forq=1to250:nextq:pokesi+4,16:forq=1to50:nextq:return
1335 data100,1,200,300,400,500,100,200,300,175,750,2,350,250
1345 data600,400,150,200,250,400,3,450,150,200,2
1355 data600,200,250,1000,150,300,700,450,3,800,150,500,400
1365 data250,2,400,550,300,200,900,200,400,300,3,350,250,500,2000,300,800
1375 data1500,2,700,500,350,400,550,300,200,900,200,400,300,2,600,250,200
1385 dataperson,harrison ford,title,the rescuers
1395 dataphrase,chip off the old block,person,bill russell
1405 datafictional character,foghorn leghorn,phrase,where's the beef
1415 datatitle,ghostbusters,phrase,here's johnny,title,battlestar galactica
1425 datafictional character,kermit the frog,title,blue suede shoes
1435 dataphrase,e t phone home,occupation,stock broker,place
1445 datacarson city nevada,place,the grand canyon,place,baja california
1455 dataplace,salt lake city utah,place,albequerque new mexico,place
1465 dataflagstaff arizona,place,the rocky mountains,place,cheyenne wyoming
1475 dataplace,traverse city michigan,place,cincinnati ohio,place
1485 datatoronto ontario,place,indianapolis indiana
1495 dataplace,trenton new jersey,title,the killing fields
1505 datatitle,chariots of fire,title,we are the world
1515 dataperson,sylvester stallone,title,the grapes of wrath
1525 dataplace,westminster abbey,phrase,life in the fast lane
1535 datatitle,dungeons and dragons,place,charleston south carolina,thing
1545 datatwenty two gun salute,phrase,turnabout is fair play,phrase
1555 dataa penny saved is a penny