Input Not Validated for Non-Numeric Values
- Lenguaje dominante
- C++
- Estrellas
- 1
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 65/100