This Python script implements a simple number guessing game. The player has 5 attempts to guess a randomly generated number between 1 and 100. After each guess, the player receives feedback on whether their guess is too high or too low. If the player guesses correctly within the allowed attempts, they win; otherwise, they lose. The game allows the player to play again if desired.
- Run the script in a Python environment.
- Follow the prompts to input your guesses.
- Receive feedback on each guess.
- Win by guessing the correct number within 5 attempts.
- Choose to play again or exit the game.
- Python 3.x
- Clone or download the repository.
- Navigate to the directory containing the script.
- Run the script using the command
py number-guesser.py
ou click run in your IDE
Feel free to contribute by suggesting improvements or adding new features!