Column Win Check Missing
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Domain
- game-dev
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.
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.
- Dominant language
- C++
- Stars
- 1
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 7xGit/7xGit_Task3
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
7xGit/7xGit_Task3#4 ·
-
bug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
7xGit/7xGit_Task3#3 ·
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
7xGit/7xGit_Task3#2 ·
-
bug enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
7xGit/7xGit_Task3#1 ·
All issues in 7xGit/7xGit_Task3
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·