From 425b2696cd32c171076c758cc2f753d54f5d9c2b Mon Sep 17 00:00:00 2001 From: hugomanipoud2 Date: Thu, 22 May 2025 20:01:35 +0200 Subject: [PATCH] maybe almost finished but doesnt work --- OOP_3B5_Project/src/backend/Move.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OOP_3B5_Project/src/backend/Move.java b/OOP_3B5_Project/src/backend/Move.java index b94c13e..af989ff 100644 --- a/OOP_3B5_Project/src/backend/Move.java +++ b/OOP_3B5_Project/src/backend/Move.java @@ -37,9 +37,9 @@ public class Move { needPieceDeletion(toX, toY); //if a piece is at arrival coord, remove the piece } specialMoves.pawnPromotion(movingPiece, toY); + specialMoves.setCastlingVariable(movingPiece, toX, toY); movingPiece.setX(toX); // change coordinates to the new coordinate movingPiece.setY(toY); - specialMoves.setCastlingVariable(movingPiece); board.setTurnNb(turnNb + 1); } break;