aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-08-04 08:54:02 +0200
committerAdam <adammegarules1@gmail.com>2026-08-04 08:54:02 +0200
commit0f9a523370075ec64b3c0acd040926fdb0de7938 (patch)
tree1d6e9630c895dfab3f79c7f7946462ff2428152e /src
parentd290c25ac246b6d32f35dfcd18481877d35bfaed (diff)
fix
Diffstat (limited to 'src')
-rw-r--r--src/board/board.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/board/board.cpp b/src/board/board.cpp
index ab00e4a..9fa986d 100644
--- a/src/board/board.cpp
+++ b/src/board/board.cpp
@@ -165,7 +165,6 @@ UndoMove MakeMove(Move move, Game *g) {
}
}
- // this part was written by ai
if (piece.type == ROOK) {
if (piece.color) { // White
if (move.From.rank == 0 && move.From.file == 0) { // a1
@@ -185,7 +184,7 @@ UndoMove MakeMove(Move move, Game *g) {
}
}
- // this part is also written with ai
+ // this part is written with ai
if (piece2.type == ROOK) {
if (piece2.color) { // White rook captured
if (move.To.rank == 0 && move.To.file == 0) // a1