return Object.assign(
{},
ChessRules.PawnSpecs,
- { promotions: V.PIECES }
+ {
+ promotions:
+ ChessRules.PawnSpecs.promotions.concat(
+ [V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN])
+ }
);
}
static get PIECES() {
return (
- ChessRules.PIECES.concat([V.C_ROOK, V.C_KINGHT, V.C_BISHOP, V.C_QUEEN])
+ ChessRules.PIECES.concat([V.C_ROOK, V.C_KNIGHT, V.C_BISHOP, V.C_QUEEN])
);
}
return (
this.isAttackedBySlideNJump(sq, color, V.C_QUEEN, V.steps[V.BISHOP]) ||
this.isAttackedBySlideNJump(
- sq, color, V.C_ROOK, V.steps[V.KNIGHT], "oneStep")
+ sq, color, V.C_QUEEN, V.steps[V.KNIGHT], "oneStep")
);
}
}
);
}
+
+ static get SEARCH_DEPTH() {
+ return 2;
+ }
};