7xGit / 7xGit/7xGit_Task3

Column Win Check Missing

Ouverte Adaptée aux débutants
#5 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
C++
Étoiles
1
Forks
4
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cpp
Domaine
game-dev
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Clairement spécifiée
Accessibilité débutants
75/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.