Number Guessing Game
The Number Guessing Game is a classic and engaging game where players attempt to guess a randomly generated number within a specified range. It's a game of skill, logic, and probability, and it can be played alone or with friends.
1. Objective: The primary goal of the game is to correctly guess the randomly generated number.
2. Guess Range: The game typically specifies a range of numbers within which the target number is selected. In this example, the range is from 1 to 99.
3. Chances: Players are given a limited number of chances to guess the correct number. In this case, there are 10 chances to make a correct guess.
4. Feedback: After each guess, the game provides feedback to the player, indicating whether their guess is "high," "low," "correct," or "invalid." This feedback helps players refine their guesses.
5. Losing: Winning: The player wins the game by correctly guessing the target number within the given chances. A congratulatory message is displayed, and the game offers an option to replay.
6. If the player exhausts all their chances without guessing the correct number, they lose the game. A message informs them of the loss and provides the option to replay.
7. Replay: After either winning or losing, players can choose to replay the game, generating a new random number and resetting the chances.