geekcomputers / geekcomputers/Python
Add number_guesse.py feature
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 35.4k
- Forks
- 12.9k
- Avg merge
- 2h 37m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem?
Currently the repository lacks an interactive
number guessing game implementation. There is no
example that demonstrates random number generation
combined with user input validation and game loop
logic in a beginner-friendly way.
Describe the Solution
Add a number_guessing.py file that implements a
complete number guessing game where:
- User defines the upper bound of the range
- Program generates a secret random number
- User guesses repeatedly until correct
- Program responds with "Too High" or "Too Low" hints
- Final score shows total number of guesses taken
Describe Alternatives
An alternative would be to add this as part of an
existing file, however a standalone file keeps the
code clean, readable, and easy to understand for
beginners learning Python fundamentals.
Additional Context
This is a classic beginner algorithm that covers:
- random module usage
- Input validation
- While loops
- Conditional statements
- Function design with type hints
The file will follow all repository contribution
guidelines including proper docstrings and clean
code structure.
Complexity
- Simple (< 50 lines)
- Medium (50-200 lines)
- Complex (> 200 lines)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the repository contribution guidelines and confirm the intended standalone filename, since the title says number_guesse.py while the solution requests number_guessing.py. Done means the file provides the specified upper-bound input, random secret number, repeated guesses with validation and Too High/Too Low hints, and a final guess count using the requested beginner-friendly structure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 74/100