https://github.com/egigiffari/guess-number-py
Create a simple game where the program randomly selects a number and the user has to guess it within a few tries.
https://github.com/egigiffari/guess-number-py
guess-the-number tutorial
Last synced: about 1 year ago
JSON representation
Create a simple game where the program randomly selects a number and the user has to guess it within a few tries.
- Host: GitHub
- URL: https://github.com/egigiffari/guess-number-py
- Owner: egigiffari
- Created: 2025-05-25T15:05:23.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-31T13:59:56.000Z (about 1 year ago)
- Last Synced: 2025-06-06T00:43:16.248Z (about 1 year ago)
- Topics: guess-the-number, tutorial
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎮 Guess the Number Game - Python (Terminal Version)
A simple terminal-based number guessing game built with Python. The program randomly selects a number between 1 and 100, and the player must guess it correctly.
---
## 🧩 Project Description
- The program picks a random number between 1 and 100.
- The user inputs guesses via the terminal.
- The program provides hints: "Too high", "Too low", or "Correct!".
- The number of attempts is counted and shown at the end.
- Runs entirely in the terminal using Python's standard input/output.
---
## 🚀 How to Run
### 1. Clone project
```bash
git clone https://github.com/egigiffari/guess-number-py.git guess_number_game
```
### 2. RUN project
```bash
cd guess_number_game
```
#### Windows
```bash
python main.py
```
#### Linux/MacOS
```bash
python3 main.py
```