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...) |
|||
Line 10: | Line 10: | ||
* 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 |
Revision as of 13:45, 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
- 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