Input Not Validated for Non-Numeric Values
- 主要言語
- C++
- スター
- 1
- フォーク
- 4
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Title:
Crash on Non-Numeric Input
Description:
When a player enters non-numeric input for the row or column, the game crashes. The program does not handle invalid input types (like letters or symbols), causing it to terminate unexpectedly.
Steps to Reproduce:
Start the game.
Enter a letter or symbol instead of a number when prompted for the row or column.
The game crashes.
Expected Behavior:
The game should prompt the player to enter a valid numeric value instead of crashing.
Suggested Fix:
Use input validation to ensure only integers are accepted for the row and column inputs.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Look for the code that reads player input for row and column, likely in a main game loop or input function. Add validation to check if the input is a valid integer before processing. Test by running the game and entering letters or symbols to ensure it prompts for valid input instead of crashing.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- cli
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 65/100