home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1994 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1994.iso
/
compsrcs
/
games
/
vmsnet
/
wheel
/
part01
< prev
next >
Wrap
Text File
|
1993-08-29
|
9KB
|
305 lines
Newsgroups: vmsnet.sources.games
Path: uunet!spool.mu.edu!sol.ctr.columbia.edu!caen!nic.umass.edu!umassd.edu!MDCS.UMASSD.EDU!S14863SA
From: s14863sa@UMASSD.EDU
Subject: Wheel of Fortune [1/1] VAX BASIC
Message-ID: <CC1sqK.FtC@umassd.edu>
Sender: usenet@umassd.edu (USENET News System)
Reply-To: s14863sa@UMASSD.EDU
Organization: UMASS DARTMOUTH, NO. DARTMOUTH, MA.
Date: Fri, 20 Aug 1993 07:56:41 GMT
Lines: 292
Xref: uunet vmsnet.sources.games:775
I am new to Usenet and the Internet in general, but I do maintain an
interest in the good ol VMS OS... I know of nowhere besides vmsnet.sources
and vmsnet.sources.games in the world that I can acquire old VMS stuff from.
The following is the VAX BASIC source code to a Wheel of Fortune game... It
works with almost any terminal emulation, but works best with VT100...
I do not know how to use uudecode/uuencode... I will not archive this in any
way... just cut it out, name it WHEEL.BAS, and type:
$ basic wheel
$ link wheel
$ run wheel
Please be patient with me.
This is my first ever post in an Internet Usenet group. I would like to hope
that this game brings some enjoyment to someone out there who is doomed to
VMSdom...
------------------------------------CUT---------------------------------------
100 Rem ***** Wheel of Fortune v1.0 for VAX/VMS system
110 Rem ***** by Jason R. Keyes (LOXSMITH@WORKS.UUCP) 1/13/93
120 Rem
130 Data 25
140 Data "100","150","250","450","600"
150 Data "Bankrupt","750","800","950","1000"
160 Data "Lose a Turn","1100","1200","1350","1500"
170 Data "Bankrupt","2000","2250","2500","2800"
180 Data "Lose a Turn","3000","3500","4000","5000"
190 Data 33
191 Data "DALLAS MAVERICKS","Sports Team"
192 Data "LIVE AND LET DIE","Song/Phrase"
193 Data "MICRO PROCESSOR","Thing"
194 Data "WHEEL OF FORTUNE","Game"
195 Data "LEAVE IT TO BEAVER","TV Show"
196 Data "ANDREW DICE CLAY","Person"
197 Data "SUPERBOWL","Event"
198 Data "CROSSWORD PUZZLE", "Thing"
199 Data "THE STARSHIP ENTERPRISE", "Thing"
200 Data "GEORGE WASHINGTON","Person"
201 Data "VALENTINE'S DAY", "Date"
202 Data "WHISTLE WHILE YOU WORK", "Phrase"
203 Data "THE BRADY BUNCH", "TV Show"
204 Data "THE WORLD SERIES", "Event"
205 Data "CHRISTMAS EVE", "Date"
206 Data "MARKED FOR DEATH", "Movie"
207 Data "I WANT TO BE RICH", "Song"
208 Data "ZESTFULLY CLEAN", "Phrase"
209 Data "DANCES WITH WOLVES", "Movie"
210 Data "WALT DISNEY WORLD","Place"
211 Data "DIRTY DANCING", "Movie"
212 Data "MICKEY MOUSE", "Character"
213 Data "MIGHTY MOUSE", "Character"
214 Data "PRESS YOUR LUCK", "Phrase"
215 Data "SPIN THE WHEEL", "Phrase"
216 Data "CHRISTINA APPLEGATE", "Person"
217 Data "I'LL BE BACK", "Phrase"
218 Data "NOVEMBER RAIN", "Song"
219 Data "I WANT MY MTV", "Phrase"
220 Data "CINDY CRAWFORD", "Person"
221 Data "WHAT'S UP DOC", "Phrase"
222 Data "MAKE LOVE LIKE A MAN", "Song"
223 Data "MICHAEL JACKSON", "Person"
224 Data "WHAT GOES UP MUST COME DOWN", "Phrase"
225 Data "NEW JACK CITY", "Movie"
226 Data "SUPER MARIO BROTHERS", "Game"
227 Data "STREET FIGHTER II", "Game"
228 Data "THE INCREDIBLE HULK", "Character"
229 Data "DANCING ON THE CEILING", "Song"
230 Data "TOOTHBRUSH","Thing"
240 Data "BEAM ME UP SCOTTY","Phrase"
241 Data "HOW LOW CAN YOU GO","Phrase"
242 Data "THINK BEFORE YOU TALK","Phrase"
250 Read WD
255 Dim W$(WD),SE$(79),G1(79)
260 For I = 1 To WD
270 Read W$(I)
280 Next I
290 Read WO
300 Dim AN$(WO),CL$(WO),AU(WO)
310 For I = 1 To WO
320 Read AN$(I),CL$(I)
330 Next I
340 G$ = Chr$(7)
350 ES$ = Chr$(27)
352 VO$ = "AEIOUaeiou"
354 CN$ = "BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz"
360 R = 0
370 I = 0
375 RR = 1
380 L1$ = ES$ + "#3"
390 L2$ = ES$ + "#4"
400 X$ = ES$ + "[H" + ES$ + "[J"
410 Print X$
420 Input "Contestant #1, Enter your name: ";C1$
430 Input "Contestant #2, Enter your name: ";C2$
440 CP$ = C1$
450 CP = 1
460 Randomize
465 RR = RR + 1
470 WN = Int(Rnd*WO) + 1
471 For J = 1 To WO
472 If AU(J) = WN Then Goto 470
473 Next J
474 AU(RR) = WN
480 LW = Len(AN$(WN))
482 For A = 1 To LW
484 G1(A) = 0
485 US$ = ""
486 Next A
490 S3 = 0
500 For A = 1 To LW
510 SE$(A) = Mid$(AN$(WN),A,1)
520 If SE$(A) = " " Or SE$(A) = "'" Or SE$(A) = "," Then S3 = S3 + 1
530 Next A
540 RL = LW - S3
550 Print X$
560 R = R + 1
565 Print X$
570 Print L1$;"Wheel of Fortune"
580 Print L2$;"Wheel of Fortune"
590 Print L1$;"by Jason R. Keyes"
600 Print L2$;"by Jason R. Keyes"
610 Print
620 Print "Round ";R;" of 3"
630 Print C1$;"'s score: ";S1
640 Print C2$;"'s score: ";S2
650 Print
660 Print CP$;" has this spin. Letters used: ";US$
670 Print "Category: ";CL$(WN)
671 Print
672 Gosub 1000
674 Print
680 Input "S)pin wheel B)uy vowel G)uess answer Q)uit: ";CH$
690 Goto 1200
700 Print X$
705 For A = 1 To WD
710 Print ,W$(A)
720 Next A
730 Randomize
740 LI = Int(Rnd*WD) + 1
750 For A = 1 To LI
760 Print ,W$(A)
770 Next A
780 If W$(LI) = "Lose a Turn" Or W$(LI) = "Bankrupt" Then Goto 3000
790 V = Val(W$(LI))
800 Print
802 Print CP$;"'s turn. Letters already used: ";US$
804 Print
810 Input "Enter a consonant: ";C$
820 For A = 1 To Len(CN$)
830 If Mid$(CN$,A,1) = C$ Then Goto 850
840 Next A
842 Print G$;"You may only use a consonant!"
844 Goto 810
850 For A = 1 To Len(CN$)
860 If Mid$(US$,A,1) = C$ Then Goto 890
870 Next A
880 Goto 900
890 Print G$;"Letter already used - You lose a turn!"
895 Goto 4200
900 For A = 1 To Len(CN$)
905 If Mid$(AN$(WN),A,1) = C$ Then Goto 940
910 Next A
915 Print "Sorry, but there are no ";C$;"'s."
920 Rem
925 US$ = US$ + C$ + " "
930 Goto 4200
940 Print "Yes, there are ";
942 TT = 0
943 US$ = US$ + C$ + " "
945 For A = 1 To LW
950 If Mid$(AN$(WN),A,1) = C$ Then TT = TT + 1
955 If Mid$(AN$(WN),A,1) = C$ Then G1(A) = 1
960 Next A
965 Print TT;" ";C$;"'s. Press any key to continue: ";
970 KK$ = Inkey$(0%,Wait)
975 If CP = 1 Then S1 = S1 + (TT * V)
980 If CP = 2 Then S2 = S2 + (TT * V)
985 Goto 5000
1000 For A = 1 To LW
1010 If SE$(A) = " " Or SE$(A) = "'" Or SE$(A) = "," Then Goto 1050
1020 Goto 1070
1050 Print " ";SE$(A);" ";
1060 Goto 1090
1070 If G1(A) = 1 Then Print " ";SE$(A);" ";
1080 If G1(A) = 0 Then Print " _ ";
1090 Next A
1092 Print
1100 Return
1200 If CH$ = "S" Or CH$ = "s" Then Goto 700
1210 If CH$ = "B" Or CH$ = "b" Then Goto 1500
1220 If CH$ = "G" Or CH$ = "g" Then Goto 2000
1230 If CH$ = "Q" Or CH$ = "q" Then Goto 9000
1240 Print G$;G$
1250 Goto 565
1500 Print X$
1510 Print CP$;"'s turn. Letters used: ";US$
1520 Print
1530 Input "Buy what vowel: ";V$
1540 For A = 1 To Len(VO$)
1550 If Mid$(VO$,A,1) = V$ Then Goto 1590
1560 Next A
1570 Print G$;G$;G$;"You must enter a vowel!"
1580 Goto 1520
1590 For A = 1 To Len(US$)
1600 If Mid$(US$,A,1) = V$ Then Goto 1630
1610 Next A
1620 Goto 1650
1630 Print G$;G$;"Vowel already bought. You lose a turn, sucker!"
1640 Goto 4200
1650 For A = 1 To Len(CN$)
1660 If Mid$(AN$(WN),A,1) = V$ Then Goto 1720
1670 Next A
1680 Print "Sorry, but there are no ";V$;"'s. ";
1690 Rem
1700 US$ = US$ + V$ + " "
1710 Goto 4200
1720 Print "Yes, there are ";
1722 TT = 0
1724 US$ = US$ + V$ + " "
1729 For A = 1 To LW
1730 If Mid$(AN$(WN),A,1) = V$ Then TT = TT + 1
1740 If Mid$(AN$(WN),A,1) = V$ Then G1(A) = 1
1750 Next A
1755 Print TT;" ";V$;"'s. Press any key to continue: ";
1757 KK$ = Inkey$(0%,Wait)
1760 If CP = 1 Then S1 = S1 - (TT * 250)
1765 If CP = 2 Then S2 = S2 - (TT * 250)
1770 Goto 5000
2000 Print X$
2010 Gosub 1000
2020 Print
2030 Print "Enter your answer below: Capital Letters Only!"
2040 Input "--> ";YA$
2050 If YA$ = AN$(WN) Then Goto 2070
2060 Print G$;G$;"Sorry, you did not guess correctly."
2065 Goto 4200
2070 Print "You are totally correct! We will now move to Round ";R + 1
2080Rem
2090 If CP = 1 Then S1 = S1 + 1000
2100 If CP = 2 Then S2 = S2 + 1000
2105 If (R + 1) = 4 Then Goto 4800
2107 Print "Press any key to continue: ";
2108 KK$ = Inkey$(0%,Wait)
2110 Goto 460
3000 If W$(LI) = "Bankrupt" Then Goto 3050
3010 Print
3020 Print G$;G$;"You lose a turn, what a shame, ";CP$;". ";
3040 Goto 4200
3050 Print G$;G$;G$;G$;"Ouch! Looks like you start all over again. ";
3060 If CP = 1 Then S1 = 0
3070 If CP = 2 Then S2 = 0
3080 Goto 4200
4200 Print
4210 Print "Press any key to continue: ";
4220 KK$ = Inkey$(0%,Wait)
4230 If CP = 1 Then Goto 4270
4240 CP = 1
4250 CP$ = C1$
4260 Goto 565
4270 CP = 2
4280 CP$ = C2$
4290 Goto 565
4800 Print
4810 Goto 9000
5000 For A = 1 To LW
5010 If SE$(A) = " " Or SE$(A) = "'" Or SE$(A) = "," Then Goto 5030
5020 If G1(A) = 1 Then Goto 5030
5022 Goto 565
5030 Next A
5040 Rem
5050 Print X$
5060 Print "You have completed the puzzle."
5070 Goto 2070
9000 Print X$
9010 Print "Rounds played: ";R
9020 Print C1$;"'s total winnings: ";S1
9030 Print C2$;"'s total winnings: ";S2
9040 If S1 > S2 Then Print C1$;" wins this game."
9050 If S2 > S1 Then Print C2$;" wins this game."
9060 If S1 = S2 Then Print "This game ends in a dead tie."
9070 Print
9080 Print "Thank you for playing the VAX/VMS version of"
9090 Print ,"Wheel of Fortune V1.0 by Jason R. Keyes (LOXSMITH@WORKS.UUCP)."
9100 Print
9110 Print "Good day to you. :-)"
9120 Print
9130 End