7xGit / 7xGit/7xGit_Task6

No Feedback for Incorrect Input

Abierto Apto para principiantes
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement good first issue
Lenguaje dominante
JavaScript
Estrellas
1
Forks
4
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

Title:
No Feedback or Reset Mechanism for Incorrect Input

Description:
Currently, when the user makes an incorrect guess, no feedback is provided, and the game doesn't reset. This makes it impossible for the user to understand when they've lost.

Expected Behavior:
The game should alert the user when they've made an incorrect selection and reset the game to start over.

Missing Logic:
An else block should be added to the checkAnswer() function to handle cases where the user's input does not match the correct pattern.

Suggested Fix:

Add an else block in checkAnswer() to provide feedback to the user (such as changing the text in the header to "Game Over" or adding animations).

Call startOver() inside the else block to reset the game.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Look for the checkAnswer() function in the codebase, likely in a main game logic file. Add an else block to handle incorrect guesses, providing feedback like changing header text to 'Game Over' and calling a startOver() function to reset the game state. Test by making an incorrect guess and verifying the game resets with appropriate feedback.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
javascript
Área
game-dev
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
75/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.