getPiece(i, j, color) {
const p = this.board[i][j].charAt(1);
-
-console.log(p);
-
if (ChessRules.PIECES.includes(p)) return p;
const c = this.board[i][j].charAt(0);
// NOTE: this.turn == HACK, but should work...
this.lastMoveEnd.push(Object.assign({}, move.end, { p: released }));
}
V.PlayOnBoard(this.board, move);
+ this.postPlay(move);
}
undo(move) {
this.turn = V.GetOppCol(this.turn);
this.movesCount--;
}
+ this.postUndo(move);
}
getCurrentScore() {