7xGit / 7xGit/7xGit_Task3

Game Ends Early Due to Incorrect Turn Count

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

Description

Title:
Game Ends Prematurely

Description:
The game ends too early due to an issue with how the turn counter is managed. Even when there are still empty spaces, the game may end as a draw or skip some rounds.

Steps to Reproduce:

Play a game for a few rounds.
Observe that the game may end before all 9 turns are used, or it may terminate early.
Expected Behavior:
The game should continue until all 9 turns have been played or a player wins.

Suggested Fix:
Ensure that the turn counter is correctly managed and all 9 moves are allowed unless a player wins earlier.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the turn counter variable and the game loop logic in the main game file. Check the condition that determines when the game ends—it should only stop after 9 turns or when a win is detected. Run the game and simulate a few rounds to see if it ends early, then adjust the turn management.

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
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.