Random Number Guessing Game using VB C#

Random Number Guessing Game using VB C#

Random Number Guessing Game using VB C#

Create an application with a group of 3 radio buttons that generates a random number in the range of 1 to 10 if this "Novice" radio button is selected, 1 to 100 if the "Expert" radio button is selected, and 1 to 1,000 if the "Master" radio button is selected. Get the user’s name. Ask the user to guess the number. Have the game keep count of the number of guesses that the user makes.

If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” When the user correctly guesses the random number, the program should display the number of guesses and congratulate the user.

Have the application save to a data file the correct number, the player’s name, and the number of attempts for that round. Make sure the file is formatted for later retrieval.

At the end of each round, ask the user if he would like to play again. If yes is selected, the application should generate a new random number so the game can start over.

Allow the user to change the player’s name for the current round.

Add a checkbox labeled "Advanced." When this is checked the user only gets an "incorrect, try again" message. So, you don't tell the user which way to go to narrow the search.

Add a button to "Display Previous Plays" that will show all the saved data in a message, properly formatted for display.
Powered by