Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shivankushsingh09/guess-the-number-game
The “Guess the Number” game is a fun Python command-line game where the computer picks a random number, and the player tries to guess it. The game gives hints if the guess is too high, too low, or correct, making it an enjoyable challenge.
https://github.com/shivankushsingh09/guess-the-number-game
feedback guess-limit logic-game number-guessing python-game python-script random-number simple-game user-input win-or-loss
Last synced: about 2 months ago
JSON representation
The “Guess the Number” game is a fun Python command-line game where the computer picks a random number, and the player tries to guess it. The game gives hints if the guess is too high, too low, or correct, making it an enjoyable challenge.
- Host: GitHub
- URL: https://github.com/shivankushsingh09/guess-the-number-game
- Owner: shivankushsingh09
- License: mit
- Created: 2024-07-18T17:33:10.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:17:25.000Z (5 months ago)
- Last Synced: 2024-07-27T03:14:25.316Z (5 months ago)
- Topics: feedback, guess-limit, logic-game, number-guessing, python-game, python-script, random-number, simple-game, user-input, win-or-loss
- Language: Python
- Homepage: https://www.w3schools.com/python/
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Guess the Number Game
A simple command-line game written in Python where the player attempts to guess a randomly generated number within a specified range.
## Table of Contents
- [Introduction](#introduction)
- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
- [Gameplay](#gameplay)
- [Screenshots](#screenshots)
- [Technologies Used](#technologies-used)
- [Contributing](#contributing)
- [License](#license)
- [Contact](#contact)## Introduction
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.
## Features
- 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## Installation
To run this game on your local machine, follow these steps:
1. **Clone the repository:**
```bash
git clone https://github.com/shivankushsingh09/Guess-the-Number-Game.git
```2. **Navigate to the project directory:**
```bash
cd Guess-the-Number-Game
```3. Ensure you have Python installed. This game is compatible with Python 3.x.
## Usage
**To start the game, run the following command:**
```bash
python Guess-the-Number-Game.py```
## Gameplay
1. The game will prompt you to enter the lower and upper bounds for the number range.
2. A random number will be generated within this range.
3. You will be prompted to guess the number.
4. After each guess, you will receive feedback indicating whether your guess was too high, too low, or correct.
5. The game will keep track of the number of attempts.
6. Once you guess the correct number, you will be given the option to play again.## Screenshot
## Technologies Used
- Python
## Contributing
Contributions are welcome! If you have any suggestions or improvements, feel free to open an issue or submit a pull request.
1. Fork the repository.
2. **Create a new branch:**
```bash
git checkout -b feature-branch-name
```3. **Make your changes and commit them:**
```bsh
git commit -m 'Add some feature'
```4. **Push to the branch:**
```bash
git push origin feature-branch-name
```5. Open a pull request.
## License
This project is licensed under the MIT License. See the [License](https://github.com/shivankushsingh09/Guess-the-Number-Game?tab=MIT-1-ov-file) file for details.
## Contact
- Shivankush Singh - [LinkedIn](https://www.linkedin.com/in/shivankush-singh-853411241/) - [email protected]
Project Link: https://github.com/shivankushsingh09/Guess-the-Number-Game.git