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:
parent
ec1fc2a693
commit
bf93e6e877
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue