import { ChessRules } from "@/base_rules";
export class VchessRules extends ChessRules {
+
static get PawnSpecs() {
return Object.assign(
{},
isAttackedByPawn(sq, color) {
return this.isAttackedBySlideNJump(
- sq,
- color,
- V.PAWN,
- V.steps[V.BISHOP],
- "oneStep"
- );
+ sq, color, V.PAWN, V.steps[V.BISHOP], 1);
}
getNotation(move) {
}
return notation;
}
+
};