projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Shogi
[vchess.git]
/
client
/
src
/
variants
/
Shogi.js
diff --git
a/client/src/variants/Shogi.js
b/client/src/variants/Shogi.js
index
52cfb54
..
7e827bc
100644
(file)
--- 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;