Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Introduction to Control Statements: Implementing a Number Guessing Game in C++

オープン
#9 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cpp
領域
cli

調査の方向性

issue の説明に従って number_guessing_game.cpp を作成します。まず、リポジトリにある既存の初心者向け C++ プログラムを確認し、その後、複数の予想を入力してプログラムをコンパイルおよび実行します。1 から 100 までの乱数が生成され、「もっと大きい」/「もっと小さい」というヒントが表示され、正しい予想の後に勝利メッセージが表示されれば完了です。

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

説明

good first issue hacktoberfest

Embark on a coding adventure with this interactive C++ task! This beginner-level challenge will introduce you to control statements and user input handling by guiding you to create a number guessing game.

Task:
Your challenge is to develop a C++ program for a number guessing game. Generate a random number between 1 and 100 and allow the user to guess the number. Provide hints (higher, lower) until the user correctly guesses the number.

Instructions:

  1. Fork this repository to your GitHub account.
  2. Clone the forked repository to your local machine: git clone https://github.com/KALIIOWORK/basic_c-_programs.git
  3. Create a new C++ file named number_guessing_game.cpp.
  4. Implement a function to generate a random number between 1 and 100.
  5. Implement the main game logic, allowing the user to input their guess and providing appropriate hints.
  6. Ensure the game displays a victory message when the user guesses the correct number.
  7. Test your number guessing game with multiple attempts to validate its functionality.
  8. Compile and run your program to confirm it works as intended.
  9. Commit your changes and push them to your forked repository.
  10. Open a pull request with your changes.

Note:
This task will strengthen your understanding of control statements and user interaction in C++. Building an interactive game is a fun way to practice your skills. Enjoy coding and happy gaming! 🎮✨

主要言語
C++
スター
0
フォーク
6
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

KALIIOWORK/basic_c-_programs のほかの issue

KALIIOWORK/basic_c-_programs の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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