home *** CD-ROM | disk | FTP | other *** search
/ ftp.whtech.com / ftp.whtech.com.tar / ftp.whtech.com / club100 / gam / wheel.doc < prev    next >
Text File  |  2006-10-19  |  6KB  |  86 lines

  1. WHEEL.INF     [73300,2772]
  2. By George Flanders
  3. Offered free for enjoyment - no rights claimed
  4. June 2, 1988
  5.     Here's a diversion for people who can't get enough of the "Wheel of
  6. Fortune" TV game. The BASIC program "WHEEL.100" (with some built-in ML) is
  7. a game based on the popular television program, but changed enough so one
  8. player can amuse him/herself for quite a while by guessing combinations of
  9. words which make up a phrase, person,
  10. thing, place, people or event. To keep things simple, the database consists of
  11. three-word combinations. In the sample database, in this DL as "WHEEL1.DTA",
  12. there are 60 different combinations: ten for each category.
  13.     After a while, you'll find that you will recognize the word patterns,
  14. and it'll get too easy. That's the time to change the database. Better yet -
  15. exchange database files with other players to test one another's skill! Or,
  16. you could write more than one database file. More about that presently.
  17.     There's no way to compensate you for the absence of Pat, Vanna and
  18. announcer Jack with his "studio full of valuable prizes"; nonetheless,
  19. WHEEL.100 has its own charm. It presents a game screen which contains the
  20. following elements, in addition to the title: (1) a value for the letter
  21. chosen, (2) your winnings for the current round (3) the number of guesses
  22. you have left (4) your cumulative winnings for the current session (series
  23. of rounds, as you opt to continue) and maybe best of all, reminders of which
  24. letters you've chosen incorrectly during the round.
  25.     I've programmed seven turns for each round, not counting bought vowels.
  26. You can choose each time to SPIN or SOLVE the puzzle. If your current
  27. round's earnings are at least $100, and until you use up two vowel selections,
  28. you also get the choice BUY A VOWEL. When you get so good that seven turns
  29. are too many, you can simply edit line 0 to say "PRINT@115,--" (number of your
  30. choice); and edit line 5 to say "EL=--" (same number). It may be that for
  31. youngsters you'd like to increase the number of turns, and that's easily done.
  32.     Much of the variation of the game depends on the pseudo random
  33. number generated in line 9. Like most computers, the M-100 doesn't output a
  34. truly "random" number with its RND function. In fact, you almost always get
  35. the same pattern of numbers at start-up. One solution that works well for this
  36. game is to poll address -1745 (63791 decimal, F92F hex), which continuously
  37. counts down from 125 to 0 as part of the background task. Line 9 sets the
  38. counter "Q" to a value of 1 plus PEEK(-1745)MOD60. When the subroutine in line
  39. 9 is called, there's no telling what value (0-125) is held in -1745. We
  40. perform the modulus arithmetic to be sure that the variable Q always ends up
  41. having a value between 1 and 60. A similar thing might be done by making
  42. Q=1+VAL(RIGHT$(TIME$,2)); but considering that each turn may consume about the
  43.  same amount of time, after testing I found the first method to be more
  44. "random". To be sure the same number doesn't come up twice in any round, the
  45. array U(60) rejects repeats.
  46.     When you start up, the database file is read Q number of times to
  47. determine which word combination will be presented, and which of the six types
  48. it represents. If you assemble additional database files, be sure that each
  49. file contains not fewer than 60 records, or a read error could halt the game.
  50. It doesn't make sense to have more than 60 combinations in the file, unless you
  51. want to fiddle with the dimensioning of U(-) in line 5 and the MOD... value in
  52. line 9. However, it doesn't matter how many of each of the six types of word
  53. combinations are in the file - you might do all phrases (type 1), or more of
  54. one type than another, just so long as there are 60 entries. Each entry in the
  55. file must contain a "T" value (type) and three following words; for example:
  56.     6,NEW,YEAR'S,EVE
  57. is type 6 (event). Valid three-word combinations can ONLY be comprised of the
  58. alphabet plus an apostrophe. The machine language routines which receive your
  59. inputs are coded to reject any other keystroke, and the small character set
  60. the game uses only supports those characters.
  61.     For user convenience, every letter you type in appears (and is
  62. interpreted) as a capital letter. You don't have to be concerned about having
  63. the CAPS LOCK key on. You SHOULD, however, be sure that the NUM key is NOT
  64. down, or else you'll lose the ability to enter seven letters of the alphabet!
  65.     Once you have entered a letter in a particular round, entering the
  66. same letter again doesn't penalize you. It will simply be rejected - contrary
  67. to the TV game, where memory failure costs you a turn.
  68.     You'll be glad to know that there are neither "LOSE A TURN" nor
  69. "BANKRUPT" spaces on this "wheel". Although they play an important part in
  70. a competitive game, they would serve only to frustrate the player in this
  71. "solitaire" version.
  72.     Most of the TV rules apply, as do the sequence of events in a round.
  73. Even if you're not a "Wheel Watcher", you may get hooked on the real thing by
  74. playing the M-100 version!
  75.     Finally, about exchanging database files - of your own invention
  76. or someone else's. The previous comments about the contents of a valid file
  77. apply, of course. It need only be an ordinary sequential .DO file, with the
  78. entries separated by commas (or carriage returns, although that results in a
  79. larger number of bytes used). The file looks like BASIC "DATA", without line
  80. numbers and the "DATA" statements.
  81.     It would be a simple matter for players to develop some tough files for
  82. transfer via modem. It may also be tempting for the recipient to examine
  83. the file before using it. You'd have to be on the honor system!
  84.     Well, there you have it. WHEEL.100's checksum is 364,811. The sample
  85. database file, WHEEL1.DTA, has a checksum of 92,178. Have fun!
  86.