7xGit / 7xGit/7xGit_Task3

Column Win Check Missing

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

描述

Title:
Win Check for Columns Missing

Description:
In the current implementation, the game checks for row and diagonal wins, but column wins are not checked. This causes the game to miss a victory when all spots in a column are filled by the same player.

Expected Behavior:
The game should declare a win when a player fills all spots in any column.

Suggested Fix:
Add logic in the checkWin() function to check columns for the winning condition.

贡献指南

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

调研方向

Find the `checkWin()` function in the codebase, likely in a game logic file. Examine the existing row and diagonal checks. Add a loop to iterate through columns, checking if all cells in a column belong to the same player. Test by playing a game where a column is filled to verify the win is detected.

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

评估

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

把新 issue 发到你的邮箱

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