An open API service indexing awesome lists of open source software.

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.

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
```