geekcomputers / geekcomputers/Python

Add number_guesse.py feature

Open Beginner friendly
#3,188 3 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.