From: Benjamin Auder Date: Wed, 15 Apr 2020 02:28:42 +0000 (+0200) Subject: Fix Shogi X-Git-Url: https://git.auder.net/variants/Bario/%3C?a=commitdiff_plain;h=0b9a6ff95fb80a9f40077e6554c420626a1e0454;p=vchess.git Fix Shogi --- diff --git a/client/src/variants/Shogi.js b/client/src/variants/Shogi.js index 52cfb544..7e827bc2 100644 --- a/client/src/variants/Shogi.js +++ b/client/src/variants/Shogi.js @@ -268,6 +268,7 @@ export class ShogiRules extends ChessRules { // Modified to take promotions into account getSlideNJumpMoves([x, y], steps, options) { + const options = options || {}; const color = this.turn; const oneStep = options.oneStep; const forcePromoteOnLastRank = options.force;