}
play(move) {
+ if (this.subTurn == 1 && move.vanish.length == 0) {
+ // Patch to work with old format: (TODO: remove later)
+ move.ignore = true;
+ return;
+ }
const color = this.turn;
move.subTurn = this.subTurn; //for undo
const gotoNext = (mv) => {
}
undo(move) {
+ if (!!move.ignore) return; //TODO: remove that later
this.disaggregateFlags(JSON.parse(move.flags));
V.UndoOnBoard(this.board, move);
if (this.subTurn == 1) {