7xGit / 7xGit/7xGit_Task3

Turn Skipping After Invalid Move

オープン 初心者向け
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug enhancement
主要言語
C++
スター
1
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

説明

Title:
Turn Counting Error After Invalid Input

Description:
After an invalid move (e.g., selecting a position that's already taken or out of bounds), the game asks the player to try again, but the turn counter still increments. This causes the turn to skip, giving the other player two turns in a row.

Steps to Reproduce:

Start the game.
Make an invalid move by choosing a taken or out-of-bounds cell.
Observe that after re-entering the move, the other player gets two turns.
Expected Behavior:
The game should not increment the turn count when the input is invalid.

Suggested Fix:
Ensure the turn counter only increments when the input is valid.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Look for the game loop and turn-handling logic, likely in a main game file. Identify where the turn counter is incremented and where input validation occurs. Ensure the increment only happens after a valid move is confirmed. Run the game and test with invalid moves to verify the fix.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
game-dev
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
70/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。