From: Benjamin Auder Date: Sat, 11 Apr 2020 19:42:48 +0000 (+0200) Subject: sq --> [x, y] X-Git-Url: https://git.auder.net/?p=vchess.git;a=commitdiff_plain;h=8a9ed886b3e551e9179fce924349b6552ba574e7 sq --> [x, y] --- diff --git a/client/src/variants/Allmate1.js b/client/src/variants/Allmate1.js index d07cf847..f3c0b2ec 100644 --- a/client/src/variants/Allmate1.js +++ b/client/src/variants/Allmate1.js @@ -62,7 +62,7 @@ export class Allmate1Rules extends ChessRules { case V.KING: // Do not allow castling to escape from check oppMoves = super.getSlideNJumpMoves( - sq, + [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), "oneStep" ); diff --git a/client/src/variants/Allmate2.js b/client/src/variants/Allmate2.js index 9ba91ef0..424bb09e 100644 --- a/client/src/variants/Allmate2.js +++ b/client/src/variants/Allmate2.js @@ -63,7 +63,7 @@ export class Allmate2Rules extends ChessRules { case V.KING: // Do not allow castling to escape from check oppMoves = super.getSlideNJumpMoves( - sq, + [x, y], V.steps[V.ROOK].concat(V.steps[V.BISHOP]), "oneStep" );