turn colour for undo
This commit is contained in:
parent
a52bf87ec6
commit
01e0027daf
|
|
@ -315,6 +315,12 @@ public class Board implements Cloneable {
|
|||
pieces = boardHistory.getLast();
|
||||
boardHistory.removeLast();
|
||||
turnNumber--;
|
||||
if (!turnIsWhite) {
|
||||
turnIsWhite=true;
|
||||
}
|
||||
else {
|
||||
turnIsWhite=false;
|
||||
}
|
||||
}
|
||||
|
||||
public Board(Board board) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue