Skip to content

OG-Matcha/Number-Guessing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing Game

Welcome to the Number Guessing Game! In this game, you will be prompted to enter an upper and lower bound, and the program will generate a random number within that range for you to guess.


How to Play

  1. Run the game file game.py

  2. Enter the upper and lower bounds for the number range

  3. The program will use the logarithm function to calculate the chances of guessing the number

  4. You will be prompted to input a number within the specified range

  5. If your guess is correct, you win! If not, you will be prompted to guess again until the correct number is guessed or your chances are exhausted.


Features

  • The program uses the logarithm function to calculate the chances of guessing the number

  • The game includes a feature to allow the user to play again

  • The program checks if the input is a valid number and within the specified range


Requirements

  • Python 3.6 or later
  • random and math library

License

This project is licensed under the MIT License - see the LICENSE file for details.

Example

Example

If you like this, please give it a star, any suggestion is welcome.

About

This is a number guessing game written in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages