Skip to content

OscarPastry/number-guessing-game

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Number Guessing Game

This is a simple Python terminal-based number guessing game where the computer selects a random number between 1 and 100, and the player tries to guess it within a limited number of attempts. Difficulty levels adjust the number of chances given.

πŸ”— Project Idea Reference: Number Guessing Game β€” roadmap.sh

πŸš€ Features

  • Random number generation between 1 and 100
  • Three difficulty levels:
    • Easy – 10 guesses
    • Medium – 5 guesses
    • Hard – 3 guesses
    • Russian Roullete - 1 guess
  • Feedback after each guess: too high or too low
  • Option to replay the game after finishing

πŸ› οΈ How to Run

  1. Make sure Python is installed (version 3.x recommended).
  2. Download the script or clone the repository.
  3. Run the game using the terminal:
python GameV3_0.py

🧠 How to Play

  1. Choose a difficulty level.
  2. Enter your guesses one by one.
  3. Try to guess the number before you run out of chances.
  4. Replay as many times as you'd like!

πŸ“‚ File

  • GameV3_0.py – Main game file.

πŸ“Έ Preview

Welcome to the Number Guessing Game!
I'm thinking of a number between 1 and 100.
You have 5 chances to guess the correct number.
Please select the difficulty level:
1. Easy (10 chances)
2. Medium (5 chances)
3. Hard (3 chances)
4. Russian Roullete(1 chance)

Enjoy playing and feel free to modify the game to make it even more fun!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%