return false;
}
+ static get HasCastle() {
+ return false;
+ }
+
getPotentialPawnMoves([x, y]) {
let moves = super.getPotentialPawnMoves([x, y]);
return moves;
}
- getPotentialKingMoves(sq) {
- // No castle:
- return this.getSlideNJumpMoves(
- sq,
- V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
- "oneStep"
- );
- }
-
// Trim all non-capturing moves (not the most efficient, but easy)
static KeepCaptures(moves) {
return moves.filter(m => m.vanish.length == 2);