This is a simple command-line Number Guessing Game built using Python. The program randomly selects a number between 1 and 100, and the player must guess the correct number. After each guess, the program provides hints to help the player reach the correct answer.
The game also tracks the number of attempts taken by the player to guess the correct number.
⚙️ How the Game Works
The program generates a random number between 1 and 100.
The user is asked to enter a guess.
The program checks the guess and gives feedback:
If the guess is higher, it says "Try a lower number."
If the guess is lower, it says "Try a higher number."
The process continues until the user guesses the correct number.
Once correct, the program displays the total number of attempts.