Fix Shogi
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 15 Apr 2020 02:28:42 +0000 (04:28 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 15 Apr 2020 02:28:42 +0000 (04:28 +0200)
client/src/variants/Shogi.js

index 52cfb54..7e827bc 100644 (file)
@@ -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;