);
}
+ isAttacked(sq, color) {
+ return (
+ super.isAttacked(sq, color) || this.isAttackedByPromoted(sq, color)
+ );
+ }
+
isAttackedByBishop(sq, color) {
const forward = (color == 'w' ? 1 : -1);
return this.isAttackedBySlideNJump(
);
}
+ isAttackedByPromoted(sq, color) {
+ return super.isAttackedBySlideNJump(
+ sq,
+ color,
+ V.PROMOTED,
+ V.steps[V.BISHOP],
+ "oneStep"
+ );
+ }
+
static get VALUES() {
return {
p: 1,