7xGit / 7xGit/7xGit_Task3

Players Can Overwrite Each Other’s Moves

未关闭 适合新手
#2 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement good first issue
主要语言
C++
星标
1
派生
4
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
game-dev
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
65/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。