X-Git-Url: https://git.auder.net/img/rock_paper_scissors_lizard_spock.gif?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FVchess.js;h=c11cce4e65fc168b86b509f9a4e800597ec2a013;hb=b19c68965d6249ab4d7873b99e2f22471049b2c1;hp=8b59c863d63b56ab27291279b4edf9dbfcc8a055;hpb=b2b5a72927ce977f96569b78126165b60f23f039;p=vchess.git diff --git a/client/src/variants/Vchess.js b/client/src/variants/Vchess.js index 8b59c863..c11cce4e 100644 --- a/client/src/variants/Vchess.js +++ b/client/src/variants/Vchess.js @@ -9,6 +9,16 @@ export class VchessRules extends ChessRules { ); } + isAttackedByPawn(sq, color) { + return this.isAttackedBySlideNJump( + sq, + color, + V.PAWN, + V.steps[V.BISHOP], + "oneStep" + ); + } + getNotation(move) { let notation = super.getNotation(move); // If pawn captures backward, add an indication 'b'