7xGit / 7xGit/7xGit_Task3

Turn Skipping After Invalid Move

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

描述

Title:
Turn Counting Error After Invalid Input

Description:
After an invalid move (e.g., selecting a position that's already taken or out of bounds), the game asks the player to try again, but the turn counter still increments. This causes the turn to skip, giving the other player two turns in a row.

Steps to Reproduce:

Start the game.
Make an invalid move by choosing a taken or out-of-bounds cell.
Observe that after re-entering the move, the other player gets two turns.
Expected Behavior:
The game should not increment the turn count when the input is invalid.

Suggested Fix:
Ensure the turn counter only increments when the input is valid.

贡献指南

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

调研方向

Look for the game loop and turn-handling logic, likely in a main game file. Identify where the turn counter is incremented and where input validation occurs. Ensure the increment only happens after a valid move is confirmed. Run the game and test with invalid moves to verify the fix.

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

评估

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

把新 issue 发到你的邮箱

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