projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typos
[vchess.git]
/
client
/
src
/
variants
/
Shogi.js
diff --git
a/client/src/variants/Shogi.js
b/client/src/variants/Shogi.js
index
e8b1791
..
63c0d72
100644
(file)
--- a/
client/src/variants/Shogi.js
+++ b/
client/src/variants/Shogi.js
@@
-308,7
+308,7
@@
export class ShogiRules extends ChessRules {
case V.LANCE:
return this.getPotentialLanceMoves([x, y]);
case V.KING:
case V.LANCE:
return this.getPotentialLanceMoves([x, y]);
case V.KING:
- return
this
.getPotentialKingMoves([x, y]);
+ return
super
.getPotentialKingMoves([x, y]);
case V.P_ROOK:
return this.getPotentialDragonMoves([x, y]);
case V.P_BISHOP:
case V.P_ROOK:
return this.getPotentialDragonMoves([x, y]);
case V.P_BISHOP:
@@
-447,14
+447,6
@@
export class ShogiRules extends ChessRules {
);
}
);
}
- getPotentialKingMoves(sq) {
- return this.getSlideNJumpMoves(
- sq,
- V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
- { oneStep: true }
- );
- }
-
isAttacked(sq, color) {
return (
this.isAttackedByPawn(sq, color) ||
isAttacked(sq, color) {
return (
this.isAttackedByPawn(sq, color) ||