Input Not Validated for Non-Numeric Values
- Langage dominant
- C++
- Étoiles
- 1
- Forks
- 4
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- cli
- Type d'issue
- Bug
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Activité
- À l'abandon
- Clarté
- Clairement spécifiée
- Accessibilité débutants
- 65/100