Python Random Number Guesser
Overview
This project is a logic-based game where the user must identify a hidden integer generated by the system. It serves as a practical application of the random module and illustrates how to handle continuous user input and state management within a terminal environment.
Technical Stack
- Language: Python 3.x
- Key Modules:
random (for integer generation)
- Core Concepts:
- Pseudo-random number generation (PRNG)
- Input sanitization and range validation
- Iterative control flow (While-loops)
- Conditional feedback logic
Features
- Input Validation: The system ensures user input falls within the defined range (1–25) and handles invalid entries without crashing the program.
- Dynamic Feedback: Provides real-time “Higher” or “Lower” hints to guide the user toward the target value.
- Attempt Tracking: Logs and displays the total number of guesses upon completion to measure player efficiency.
How To Run
- Ensure Python 3 is installed.
- Clone the repository.
- Execute the script:
```bash
python guessing_game.py