A simple Python number guessing game where the player tries to guess a randomly generated number within limited chances.
- Random number generation
- Score system
- Limited chances
- Input validation
- Positive number checking
- Hint system based on closeness
- Python
- Random module
- Clone the repository:
git clone https://github.com/uvraj3927/python-number-guessing-game.git- Open the project folder:
cd number-guessing-game- Run the Python file:
python main.py- The computer selects a random number between 1 and 100.
- You have 3 chances to guess the number.
- The closer your guess is, the more score you earn.
- Enter only positive numbers.
Make a guess: 45
Close
Chances left: 2