This is a simple Python number guessing game where the computer randomly selects a number between 1 and 10, and the player has 3 valid attempts to guess it correctly.
-
The computer randomly generates a number between 1 and 10.
-
The player is prompted to guess the number.
-
The player has 3 valid guesses:
- Invalid inputs (non-integers or numbers outside the range) do not count as attempts.
-
If the player guesses correctly, the game ends with a success message.
-
If all attempts are used, the correct number is revealed.
-
The player is then asked whether they want to play again.
The Computer has chosen a random number between 1 and 10!
You have 3 tries!! Guess the number~
Enter your guess: 5
Wrong guess, 1 try used.
Try Again..
Enter your guess: 7
You guessed Correct!!
Do you want to play again? (y/n):