7xGit / 7xGit/7xGit_Task3

Column Win Check Missing

Open Beginner friendly
#5 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.