projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sq --> [x, y]
[vchess.git]
/
client
/
src
/
variants
/
Allmate1.js
diff --git
a/client/src/variants/Allmate1.js
b/client/src/variants/Allmate1.js
index
d07cf84
..
f3c0b2e
100644
(file)
--- 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(
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"
);
V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
"oneStep"
);