Saving of the previous board in the array list (user touch)

Merge branch 'master' of
https://gitarero.ecam.fr/aurele.wittke/OOP_1A5_Project
This commit is contained in:
edwin 2025-05-16 09:58:09 +02:00
parent ec1fc2a693
commit bf93e6e877
1 changed files with 2 additions and 1 deletions

View File

@ -282,6 +282,7 @@ public class Board {
this.x=-1; this.x=-1;
this.y=-1; this.y=-1;
castlingDone=false; castlingDone=false;
previousBoard.add(this.toString());
// we add 1 to the number of turned played // we add 1 to the number of turned played
} }
} }