});
}
+// TODO: pawnfall + Cannibal issues
+
pawnPostProcess(moves, color, oppCol) {
let moreMoves = [];
const lastRank = (color == "w" ? 0 : this.size.x - 1);
return;
}
let movingPiece = this.getDomPiece(move.start.x, move.start.y);
+ if (!movingPiece) { //TODO this shouldn't be required
+ callback();
+ return;
+ }
const initTransform = movingPiece.style.transform;
let chessboard =
document.getElementById(this.containerId).querySelector(".chessboard");
canIplay(x, y) {
if (this.options["rempawn"] && this.movesCount == 0)
- return (this.turn == side && this.getPiece(x, y) == "p");
+ return (this.playerColor == this.turn && this.getPiece(x, y) == "p");
return super.canIplay(x, y);
}