/GuessTheNumber

Guess the Number: Fun Challenge.

Primary LanguagePython

Guess the Number

This simple Python game challenges you to guess a random number between 1 and 100. You can choose your preferred difficulty level, and the game will provide hints and keep track of your remaining attempts.

Screenshot 2023-09-30 013012

Features

  • Choose your preferred difficulty level: Easy, Medium, or Hard.
  • Receive hints about the correct number.
  • Keep track of your remaining attempts.
  • Enjoy a fun and interactive number guessing experience.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Python 3 installed on your machine.

Installation

  1. Clone the repository:

  2. Navigate to the project directory:📍

    cd GuessTheNumber
  3. Run the game: ▶️

    python main.py

How to Play 🧸

  1. When you start the game, it will generate a random number between 1 and 100.
  2. You will be prompted to choose a difficulty level: Easy, Medium, or Hard.
  3. The game will provide hints about the correct number.
  4. You have a limited number of attempts based on your chosen difficulty level.
  5. Try to guess the correct number within the allotted attempts.
  6. If you guess correctly, you win the game! Otherwise, you can choose to play again.

Difficulty Levels

  • Easy: You have 10 attempts to guess the number.
  • Medium: You have 7 attempts to guess the number.
  • Hard: You have 5 attempts to guess the number.

Feel free to clone this repo 😉

   git clone https://github.com/SaiSantosh2209/GuessTheNumber.git