Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Guess-the-number-game-using-python

In this game, program randomly selects a number between 1 and 100, and the player has to guess it. After guess, the program gives hint: Cold ❄️ β†’ Your guess is far from the secret number (difference more than 10). Hot πŸ”₯ β†’ Your guess is close to the secret number (within 10). Right β†’ You guessed the number correctly!

🎲 Number Guessing Game

A fun and simple Python game where you try to guess a secret number between 1 and 100.
The game gives you hints (Cold, Hot, or Right) after each guess.


πŸš€ Features

  • Randomly generates a number between 1 and 100
  • Provides hints:
    • Cold β†’ Your guess is far (difference > 10)
    • Hot β†’ Your guess is close (difference ≀ 10)
    • Right β†’ You guessed it correctly
  • Runs until the player finds the secret number

πŸ› οΈ Requirements

  • Python 3.x

No external libraries are required.


## ▢️ How to Run

  1. Clone this repository:

    git clone https://github.com/your-username/number-guessing-game.git
    cd number-guessing-game
    
  2. Run the game: python guess.py

  3. Example Gameplay Enter a number between 1 and 100: 50 Cold Enter a number between 1 and 100: 75 Hot Enter a number between 1 and 100: 82 You guessed it Right!

Learning Objectives

Using random module in Python Writing functions and loops Handling user input

About

In this game, program randomly selects a number between 1 and 100, and the player has to guess it. After guess, the program gives hint: Cold ❄️ β†’ Your guess is far from the secret number (difference more than 10). Hot πŸ”₯ β†’ Your guess is close to the secret number (within 10). Right β†’ You guessed the number correctly!

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages