Skip to content

uvraj3927/python-number-guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Number Guessing Game 🎯

A simple Python number guessing game where the player tries to guess a randomly generated number within limited chances.

Features

  • Random number generation
  • Score system
  • Limited chances
  • Input validation
  • Positive number checking
  • Hint system based on closeness

Technologies Used

  • Python
  • Random module

How to Run

  1. Clone the repository:
git clone https://github.com/uvraj3927/python-number-guessing-game.git
  1. Open the project folder:
cd number-guessing-game
  1. Run the Python file:
python main.py

Game Rules

  • 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.

Example Output

Make a guess: 45
Close
Chances left: 2

About

A fun Number Guessing Game built using Python where players guess a random number with limited chances and scoring logic.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages