Skip to content

A Python-based Number Guessing Game with difficulty levels, input validation, and attempt tracking.

License

Notifications You must be signed in to change notification settings

junaidfarhan/python-number-guessing-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ Python Number Guessing Game | Beginner Project

A simple and interactive Number Guessing Game built using Python.
The game allows users to guess a randomly generated number with different difficulty levels.


๐Ÿ“Œ Features

  • ๐ŸŽฎ Three difficulty levels:
    • Easy (1โ€“10)
    • Medium (1โ€“50)
    • Difficult (1โ€“100)
  • ๐Ÿ”ข Random number generation
  • ๐Ÿ“ˆ Hints for guesses (Too high / Too low)
  • ๐Ÿงฎ Counts attempts (only valid guesses)
  • โŒ Handles invalid inputs using try-except
  • ๐Ÿ‘จโ€๐Ÿ’ป Beginner-friendly and exam-ready

๐Ÿ› ๏ธ Concepts Used

  • while loop
  • if-elif-else
  • random module
  • try-except
  • User input handling

โ–ถ๏ธ How to Run the Game

  1. Make sure Python is installed
  2. Clone the repository:
    git clone https://github.com/junaidfarhan/python-number-guessing-game
  3. Navigate to the Folder:
    cd python-number-guessing-game
  4. Run the Script:
    python number_guessing_game.py

About

A Python-based Number Guessing Game with difficulty levels, input validation, and attempt tracking.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages