X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FShogi.js;fp=client%2Fsrc%2Fvariants%2FShogi.js;h=7e827bc2ebbd9fac256768cd193553dd0ddd0743;hb=0b9a6ff95fb80a9f40077e6554c420626a1e0454;hp=52cfb54483061137f0cdfbb5f79e066e98160c06;hpb=3eae1418556d5a1d64b5aa46b531441b49f6bb15;p=vchess.git 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;