geekcomputers / geekcomputers/Python

Add number_guesse.py feature

オープン 初心者向け
#3,188 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
35.4k
フォーク
12.9k
平均マージ
2時間 37分
マージ済み PR(30日)
1

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まずリポジトリのコントリビューションガイドラインを確認し、意図されたスタンドアロンのファイル名を確認してください。タイトルでは number_guesse.py となっている一方、解決策では number_guessing.py が求められているためです。完了条件は、ファイルが指定された上限値の入力、ランダムな秘密の数、検証付きの繰り返しの推測と Too High/Too Low のヒント、そして要求された初心者向けの構成による最終的な推測回数を提供することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
74/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。