From bf93e6e877c941a26a550e67af936ca904c55d11 Mon Sep 17 00:00:00 2001 From: edwin Date: Fri, 16 May 2025 09:58:09 +0200 Subject: [PATCH] Saving of the previous board in the array list (user touch) Merge branch 'master' of https://gitarero.ecam.fr/aurele.wittke/OOP_1A5_Project --- src/backend/Board.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/Board.java b/src/backend/Board.java index 67e8f7e..5646d8a 100644 --- a/src/backend/Board.java +++ b/src/backend/Board.java @@ -278,10 +278,11 @@ public class Board { this.turnNumber +=1; } - // we now reset our parameters + // we now reset our parameters this.x=-1; this.y=-1; castlingDone=false; + previousBoard.add(this.toString()); // we add 1 to the number of turned played } }