A simple command-line game written in Python where the player attempts to guess a randomly generated number within a specified range.
- Introduction
- Features
- Installation
- Usage
- Gameplay
- Screenshots
- Technologies Used
- Contributing
- License
- Contact
The "Guess the Number Game" is a fun and interactive Python program that challenges the player to guess a number chosen by the computer within a specified range. This project is designed to help beginners understand basic concepts in Python such as loops, conditionals, and user input.
- Random number generation within a specified range
- User input for guessing the number
- Feedback on guesses (too high, too low)
- Count of the number of attempts
- Option to play again
To run this game on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/shivankushsingh09/Guess-the-Number-Game.git
-
Navigate to the project directory:
cd Guess-the-Number-Game
-
Ensure you have Python installed. This game is compatible with Python 3.x.
To start the game, run the following command:
python Guess-the-Number-Game.py
- The game will prompt you to enter the lower and upper bounds for the number range.
- A random number will be generated within this range.
- You will be prompted to guess the number.
- After each guess, you will receive feedback indicating whether your guess was too high, too low, or correct.
- The game will keep track of the number of attempts.
- Once you guess the correct number, you will be given the option to play again.
- Python
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
-
Fork the repository.
-
Create a new branch:
git checkout -b feature-branch-name
-
Make your changes and commit them:
git commit -m 'Add some feature'
-
Push to the branch:
git push origin feature-branch-name
-
Open a pull request.
This project is licensed under the MIT License. See the License file for details.
-
Shivankush Singh - LinkedIn - mygithub09@gmail.com
Project Link: https://github.com/shivankushsingh09/Guess-the-Number-Game.git