An engaging console-based number guessing game with multiple difficulty levels
- Overview
- Features
- Game Rules
- Installation
- How to Play
- Difficulty Levels
- Screenshots
- Building from Source
- Contributing
- License
NumHunter is an interactive console-based number guessing game written in C++. The game challenges players to guess a randomly generated number within a limited number of attempts. With 5 different difficulty levels, players can choose their preferred challenge level, from beginner-friendly to expert mode.
- 🎯 5 Difficulty Levels: From Very Easy to Very Hard
- 🎲 Random Number Generation: Each game generates a unique number
- 🔄 Replay Functionality: Play multiple rounds without restarting
- 🎨 Clean Console Interface: User-friendly text-based UI
- ⚡ Fast & Lightweight: Minimal system requirements
- 🔧 Cross-Platform: Works on Windows, Linux, and macOS
- Choose Your Difficulty: Select from 5 available difficulty levels
- Make Your Guess: Enter a number within the specified range
- Limited Attempts: You have a limited number of guesses based on difficulty
- Win or Lose: Successfully guess the number or run out of attempts
- Play Again: Choose to play another round or exit
- Download the latest release from the releases page
- Extract the files to your desired location
- Run
NumHunter.exe
See the Building from Source section below.
- Launch the Game: Run the executable file
- Select Difficulty: Choose a number from 1-5 corresponding to your desired difficulty
- Read the Instructions: Each level shows the range and number of attempts
- Make Your Guesses: Enter numbers within the specified range
- Win or Learn: Either guess correctly or see the answer when attempts run out
- Continue Playing: Choose 'Y' to play again or 'N' to exit
| Level | Difficulty | Range | Attempts | Description |
|---|---|---|---|---|
| 1 | Very Easy | 1-5 | 4 | Perfect for beginners |
| 2 | Easy | 1-10 | 4 | Great for casual players |
| 3 | Middle | 1-15 | 3 | Balanced challenge |
| 4 | Hard | 1-30 | 3 | For experienced players |
| 5 | Very Hard | 1-50 | 2 | Expert level challenge |
===============================
= **** Guess the number **** =
===============================
#LV(1) (Very Easy) Guidance "(4) Attempts Guess from (1) to (5)"
#LV(2) (Easy) Guidance "(4) Attempts Guess from (1) to (10)"
#LV(3) (Middle) Guidance "(3) Attempts Guess from (1) to (15)"
#LV(4) (Hard) Guidance "(3) Attempts Guess from (1) to (30)"
#LV(5) (Very Hard) Guidance "(2) Attempts Guess from (1) to (50)"
Please select the level
#1 (Very Easy)
#2 (Easy)
#3 (Middle)
#4 (Hard)
#5 (Very Hard)
: 3
Please guess the number from (1) to (15).
#1: 8
#2: 12
#3: 5
Congrats!5 = 5
- C++ Compiler: GCC, Clang, or MSVC
- Build Tools: Make (optional)
g++ -o NumHunter NumHunter.CPP- Open Developer Command Prompt
- Navigate to project directory
- Run:
cl NumHunter.CPP
- Create a new project
- Add
NumHunter.CPPto the project - Build and run
- C++ Standard: C++11 or later
- Libraries: Standard C++ library (iostream, vector, cstdlib, ctime)
NumHunter/
├── NumHunter.CPP # Main source code file
├── NumHunter.exe # Compiled executable (Windows)
├── README.MD # This file
└── .gitignore # Git ignore rules (optional)
Contributions are welcome! Here's how you can help:
- Fork the Repository
- Create a Feature Branch:
git checkout -b feature/amazing-feature - Commit Your Changes:
git commit -m 'Add amazing feature' - Push to Branch:
git push origin feature/amazing-feature - Open a Pull Request
- Add hint system (higher/lower feedback)
- Implement score tracking
- Add more difficulty levels
- Create a GUI version
- Add sound effects
- Implement leaderboard system
If you find a bug, please open an issue with:
- Description of the bug
- Steps to reproduce
- Expected vs actual behavior
- Your system information
This project is licensed under the MIT License - see the LICENSE file for details.
[Your Name]
- GitHub: @Amr(Sa3dwy)
- Email: Amr.amrsaad0016a@gmail.com
- Thanks to the C++ community for excellent documentation
- Inspired by classic number guessing games
- Built with ❤️ for learning and fun
⭐ Star this repository if you found it helpful!