Difference between revisions of "List Guessing Game"

From WLCS
(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...)
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
 
'''Directions:'''
 
'''Directions:'''
 
* At the very top of the program, create a list of 20 strings
 
* At the very top of the program, create a list of 20 strings
 +
** Dim the variable outside, at the top of the program, but populate the list in the Form_load area
 
* At the very top of the program, create an integer variable
 
* 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
 
* When the form loads, generate a random number from 0 up to 20 and store it in the integer variable that you created before
Line 10: Line 11:
 
* The form's only button submits the users guess
 
* The form's only button submits the users guess
 
** Check of the user's guess matches with the randomly chosen word
 
** Check of the user's guess matches with the randomly chosen word
 +
* Keep track of the number of guesses that the user makes

Latest revision as of 13:51, 17 February 2009

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
    • Dim the variable outside, at the top of the program, but populate the list in the Form_load area
  • 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
  • Keep track of the number of guesses that the user makes