Input Not Validated for Non-Numeric Values
- Dominant language
- C++
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
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.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100