works but i cant place pieces after
This commit is contained in:
parent
a0d4ae6634
commit
11ba0933c3
|
|
@ -269,8 +269,10 @@ public class Board {
|
|||
}
|
||||
|
||||
public void undoLastMove() {
|
||||
//TODO
|
||||
|
||||
if (turnNb > 0) { // only if turnnb is positive
|
||||
turnNb--; // decrease turnNb
|
||||
pieces = boardHistory.get(turnNb); // replace the arraylist pieces with the one associated with last turn
|
||||
}
|
||||
}
|
||||
|
||||
public Board(Board board) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue