home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / games / jots.zip / INSTRUCT.BAS < prev    next >
BASIC Source File  |  1989-03-15  |  7KB  |  233 lines

  1. ' INSTRUCT.BAS -- Instructions for Jots
  2. ' $INCLUDE: 'J.INC'
  3.  
  4. DECLARE FUNCTION InstStop% ()
  5.  
  6. FUNCTION InstStop%
  7.     Locate 25, 15, 1, 0, 7
  8.     Print "Press any key to continue or ESC to stop ==> ";
  9.     DO
  10.         Char$ = INKEY$
  11.     LOOP UNTIL LEN(Char$)
  12.     IF Char$ = CHR$(27) THEN
  13.         InstStop = TRUE
  14.     ELSE
  15.         InstStop = FALSE
  16.     END IF
  17.     Locate 1,1,0
  18. END FUNCTION
  19.         
  20. SUB Instructions
  21.     Color Normal, Background, Background
  22.     CLS
  23.     Print
  24.     Print "                Welcome to The Game of Jots!"
  25.     Print
  26.     Print "     Your aim in this game is to guess a secret word that the computer"
  27.     Print "   has selected.  The word will be 5 letters long."
  28.     Print
  29.     Print "     Each time you make a guess, the computer will tell you how many"
  30.     Print "   letters are in both your word and the secret word.  With a little"
  31.     Print "   logic and a well-stocked vocabulary, you should be able to figure"
  32.     Print "   out the letters in the secret word and then guess the secret word"
  33.     Print "   itself.
  34.     Print   
  35.     Print "      There are a lot of boxes on the screen.  Let's take a look at"
  36.     Print "   how each of them works.  Look at the next screen carefully, and"
  37.     Print "   then we'll describe each box in detail."
  38.     IF InstStop Then Exit Sub
  39.     
  40.     CLS
  41.     InitScore
  42.     InitGuess
  43.     InitGuessList
  44.     InitUsedList
  45.     InitPossList
  46.     InitKnownList
  47.     InitNotes
  48.     InitMessage
  49.     ShowMessage("Press any key to continue")
  50.     Pause
  51.  
  52.     CLS
  53.     InitGuess
  54.     HighlightBox(GuessBox)
  55.     Color Normal, Background, Background
  56.     Locate 7,1,0
  57.     Print "      You'll spend most of your time in the 'Your Guess' box, entering"
  58.     Print "   the words you want to guess.  Simply type a 5-letter word.  The"
  59.     Print "   computer won't let you type numbers or punctuation."
  60.     print
  61.     Print "      If you want to stop the game or if you give up, press ESC while"
  62.     Print "   you are in the 'Your Guess' box."
  63.     Print
  64.     Print "      If you want to move to another box, press the TAB key while you"
  65.     Print "   are in the 'Your Guess' box."
  66.     IF InstStop then exit sub
  67.  
  68.     CLS
  69.     Initguess
  70.     InitKnownList
  71.     HighlightBox(KnownBox)
  72.     Color Normal, Background, Background
  73.     Locate 7, 1, 0
  74.     Print "      You will also use the 'Known Letters' box fairly often.  Whenever"
  75.     Print "   you think you know a letter in the secret word, move here and type in"
  76.     Print "   the letter.  The letters here will be shown in a special color in"
  77.     Print "   other boxes on the screen."
  78.     IF InstStop then Exit Sub
  79.  
  80.     NormalBox(KnownBox)
  81.     InitScore
  82.     HighlightBox(ScoreBox)
  83.     Color Normal, Background, Background
  84.     Locate 12, 1, 0
  85.     Print "      The computer keeps track of your score in the 'Score' box.  You"
  86.     Print "   can't move to this box nor directly change the information in it."
  87.     IF InstStop then Exit Sub
  88.  
  89.     NormalBox(ScoreBox)
  90.     HighlightBox(KnownBox)
  91.     Color Normal, Background, Background
  92.     Locate 15, 1, 0
  93.     Print "      When you are in the 'Known Letter' box, you can press ENTER or"
  94.     Print "   RETURN to go back to the 'Your Guess' box.  If you press TAB, you"
  95.     Print "   will move to a new box
  96.     IF InstStop then Exit Sub
  97.  
  98.     CLS
  99.     InitGuess
  100.     InitKnownList
  101.     InitScore
  102.     InitPossList
  103.     HighlightBox(PossListBox)
  104.     Color Normal, Background, Background
  105.     Locate 12, 1, 0
  106.     Print "      You will use the 'Possible Letters' box to cross off letters that"
  107.     Print "   you are sure are NOT in the secret word.  Once you move to this box,"
  108.     Print "   simply type the letters that you want to cross off.  If you make a "
  109.     Print "   mistake, type the letter again, and it will turn back to a possible"
  110.     Print "   letter."
  111.     Print
  112.     IF InstStop then Exit Sub
  113.  
  114.     CLS
  115.     InitGuess
  116.     InitKnownList
  117.     InitScore
  118.     InitPossList
  119.     InitUsedList
  120.     HighlightBox(UsedBox)
  121.     Color Normal, Background, Background
  122.     Locate 17, 1, 0
  123.     Print "      The computer keeps this box up to date for you.  It will always"
  124.     Print "   show you what letters you haven't yet tried."
  125.     If InstStop then Exit Sub
  126.  
  127.     CLS
  128.     InitGuess
  129.     InitKnownList
  130.     InitScore
  131.     InitPossList
  132.     InitGuessList
  133.     HighlightBox(GuessListBox)
  134.     Color Normal, Background, Background
  135.     Locate 12, 17, 0
  136.     Print "   The large box on the side is used to record your guesses."
  137.     Locate 13, 17, 0
  138.     Print "It will show you what words you have guessed, how many letters"
  139.     Locate 14, 17, 0
  140.     Print "in each word are also in the secret word, which letters have"
  141.     Locate 15, 17, 0
  142.     Print "been crossed off in each word, and which letters you know for"
  143.     Locate 16, 17, 0
  144.     Print "sure are included in each word."  
  145.     Locate 18, 17, 0
  146.     Print "   The information in this box is your key to figuring out the"
  147.     Locate 19, 17, 0
  148.     Print "secret word.  Study it carefully while you are playing!  The"
  149.     Locate 20, 17, 0
  150.     Print "dark numbers in the box show you how many points you will earn"
  151.     Locate 21, 17, 0
  152.     Print "when you guess the secret word."
  153.     IF Inststop then exit sub
  154.  
  155.     CLS
  156.     InitGuess
  157.     InitKnownList
  158.     InitScore
  159.     InitPossList
  160.     HighlightBox(PossListBox)
  161.     Color Normal, Background, Background
  162.     Locate 12, 1, 0
  163.     Print "      When you are ready to leave the 'Possible Letters' box, press"
  164.     Print "   RETURN or ENTER to go back to the 'Your Guess' box, or TAB to "
  165.     Print "   move on to the next box.
  166.     IF InstStop then exit sub
  167.  
  168.     CLS
  169.     InitGuess
  170.     InitKnownList
  171.     InitScore
  172.     InitPossList
  173.     InitUsedList
  174.     InitNotes
  175.     HighlightBox(NoteBox)
  176.     Color Normal, Background, Background
  177.     Locate 11,1,0
  178.     Print "    If you want"
  179.     Print " want to make"
  180.     Print " notes to your-"
  181.     Print " self, or try"
  182.     Print " spelling a word"
  183.     Print " different ways,"
  184.     Print " move to this"
  185.     Print " box.  It has"
  186.     Print " a very simple"
  187.     Print " word processor"
  188.     Print " for you to use."
  189.     IF InstStop then exit sub
  190.  
  191.     CLS
  192.     InitGuess
  193.     InitKnownList
  194.     InitScore
  195.     InitPossList
  196.     InitUsedList
  197.     InitNotes
  198.     InitMessage
  199.     HighlightBox(MessageBox)
  200.     Color Normal, Background, Background
  201.     Locate 16,1,0
  202.     Print "    The box at"
  203.     Print " the bottom of"
  204.     Print " the screen will"
  205.     Print " have questions"
  206.     Print " for you or give"
  207.     Print " you information"
  208.     IF InstStop then exit sub
  209.  
  210.     CLS
  211.     Print
  212.     Print "      The computer has a large list of 5-letter words that it can"
  213.     print "   choose from.  Every time you make a guess, it looks to see if"
  214.     print "   your word is in its list.  If you use a word the computer doesn't"
  215.     print "   know, it will stop the game and ask you if it can add the word"
  216.     print "   to its list.  If you say yes, it will accept your guess.  If you"
  217.     print "   say no, it will assume you made a typing error and erase your"
  218.     print "   guess for you.  Remember, the words you add to the list may show"
  219.     print "   up as secret words some day, so don't add words like VWXYZ."
  220.     print
  221.     Print "      One warning.  The computer does not know very many plurals (words"
  222.     Print "   that end with an 's').  If you want you use plurals as guesses,"
  223.     Print "   the computer will probably ask you if each one is a genuine word."
  224.     Print
  225.     Print "      You can select 'Maintain Word List' from the main menu to"
  226.     print "   see a list of the words the computer knows, add words to the"
  227.     print "   list, or delete words from the list, if you want."
  228.     Print
  229.     Print "      Now it is time to start the game. Press any key."
  230.     while inkey$ = "" : wend
  231. end sub
  232.  
  233.