Players Can Overwrite Each Other’s Moves
- Linguagem predominante
- C++
- Estrelas
- 1
- Forks
- 4
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- cpp
- Domínio
- game-dev
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 65/100