7xGit / 7xGit/7xGit_Task3

Players Can Overwrite Each Other’s Moves

Đang mở Phù hợp với người mới
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement good first issue
Ngôn ngữ chính
C++
Star
1
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Look for the game board representation and the move validation logic. The issue is about preventing overwrites in occupied cells. Find where moves are processed and add a check that a cell is empty before allowing a move. Test by having two players attempt to play in the same spot.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
cpp
Lĩnh vực
game-dev
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
65/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.