List Guessing Game

From WLCS
Revision as of 13:36, 17 February 2009 by Admin (talk | contribs) (New page: '''Objective:''' * Create a game that uses lists to choose a random word, which the user must guess '''Directions:''' * At the very top of the program, create a list of 20 strings * At th...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Objective:

  • Create a game that uses lists to choose a random word, which the user must guess

Directions:

  • At the very top of the program, create a list of 20 strings
  • At the very top of the program, create an integer variable
  • When the form loads, generate a random number from 0 up to 20 and store it in the integer variable that you created before
  • Your form should have a label that displays all the possible words
  • Your form should also have a textbox that lets the user type in a word
  • The form's only button submits the users guess
    • Check of the user's guess matches with the randomly chosen word