Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (24 loc) · 1.38 KB

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.