Players Can Overwrite Each Other’s Moves
- Lenguaje dominante
- C++
- Estrellas
- 1
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Title:
Players Can Overwrite Existing Moves
Description:
Currently, the game does not properly prevent players from overwriting each other's moves. Although there's a check to see if a space is already occupied, it does not handle the overwriting issue correctly, leading to moves being replaced.
Steps to Reproduce:
Start the game.
Player 1 makes a move.
Player 2 selects the same spot.
Observe that Player 2 is allowed to overwrite Player 1's move.
Expected Behavior:
Players should not be allowed to overwrite moves in occupied cells.
Suggested Fix:
Add a stronger check to ensure that once a move is made in a square, no player can overwrite it.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Look for the game board representation and the move validation logic. The issue is about preventing overwrites in occupied cells. Find where moves are processed and add a check that a cell is empty before allowing a move. Test by having two players attempt to play in the same spot.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- cpp
- Á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
- 65/100