/Number-Guessing-Game

Number-Guessing-Game

Primary LanguagePythonMIT LicenseMIT

Number Guessing Game

This is a simple number guessing game implemented in Python using object-oriented programming (OOP) principles. The game allows players to guess a secret number within a specified range and a limited number of attempts.

How to Play

  1. Clone the repository to your local machine:
git clone https://github.com/Vikranth3140/Number-Guessing-Game.git
  1. Navigate to the project directory:
cd Number-Guessing-Game
  1. Run the game:
python main.py
  1. Follow the on-screen instructions to play the game.

Features

  • Play with default settings (range: 1-100, maximum attempts: 7) or customize the range and maximum attempts.
  • Three difficulty levels: Easy, Medium, and Hard.
  • Clear terminal screen before displaying the menu.
  • Option to exit the game at any time.

License

This project is licensed under the MIT License.