7xGit / 7xGit/7xGit_Task3

Players Can Overwrite Each Other’s Moves

Offen
#2 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue
Vorherrschende Sprache
C++
Sterne
1
Forks
4
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Title:
Players Can Overwrite Existing Moves

Description:
Currently, the game does not properly prevent players from overwriting each other's moves. Although there's a check to see if a space is already occupied, it does not handle the overwriting issue correctly, leading to moves being replaced.

Steps to Reproduce:

Start the game.
Player 1 makes a move.
Player 2 selects the same spot.
Observe that Player 2 is allowed to overwrite Player 1's move.
Expected Behavior:
Players should not be allowed to overwrite moves in occupied cells.

Suggested Fix:
Add a stronger check to ensure that once a move is made in a square, no player can overwrite it.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.