projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Antiking v1
[vchess.git]
/
client
/
src
/
variants
/
Shatranj.js
diff --git
a/client/src/variants/Shatranj.js
b/client/src/variants/Shatranj.js
index
969b819
..
45a34c0
100644
(file)
--- a/
client/src/variants/Shatranj.js
+++ b/
client/src/variants/Shatranj.js
@@
-5,6
+5,10
@@
export const VariantRules = class ShatranjRules extends ChessRules {
return false;
}
return false;
}
+ static get HasCastle() {
+ return false;
+ }
+
static get HasEnpassant() {
return false;
}
static get HasEnpassant() {
return false;
}
@@
-90,14
+94,6
@@
export const VariantRules = class ShatranjRules extends ChessRules {
);
}
);
}
- getPotentialKingMoves(sq) {
- return this.getSlideNJumpMoves(
- sq,
- V.steps[V.ROOK].concat(V.steps[V.BISHOP]),
- "oneStep"
- );
- }
-
isAttackedByBishop(sq, color) {
return this.isAttackedBySlideNJump(
sq,
isAttackedByBishop(sq, color) {
return this.isAttackedBySlideNJump(
sq,