Skip to content

Latest commit

ย 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 

Repository files navigation

Number Guessing Game ๐ŸŽฏ

A simple beginner-friendly Python game where the computer chooses a random number and the player tries to guess it.

Features

  • Three difficulty levels: Easy, Medium, and Hard
  • Different number ranges and attempt limits
  • Too high / too low hints
  • Input validation
  • Attempt counter
  • Replay option
  • Shows the correct number when the player runs out of attempts

Tech Used

  • Python
  • random module

Run

python guessing_game.py

How to Play

  1. Choose a difficulty level.
  2. Guess the hidden number within the given range.
  3. Use the hints to improve your next guess.
  4. Try to find the number before your attempts run out.
  5. Choose whether to play again.

Concepts Practiced

  • Functions
  • Variables
  • Loops
  • Conditions
  • User input
  • Random numbers
  • Dictionaries
  • Basic error handling

Author: Anshul Rajput

About

๐ŸŽฎ A fun and interactive Python game where logic meets randomness. Guess the number, get smart hints, and challenge yourself to win in fewer attempts!

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages