projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Knightrelay1. Some fixes. Move odd 'isAttackedBy_multiple_colors' to Checkered...
[vchess.git]
/
client
/
src
/
variants
/
Grand.js
diff --git
a/client/src/variants/Grand.js
b/client/src/variants/Grand.js
index
e6333cc
..
d4f620f
100644
(file)
--- a/
client/src/variants/Grand.js
+++ b/
client/src/variants/Grand.js
@@
-255,20
+255,20
@@
export const VariantRules = class GrandRules extends ChessRules {
);
}
);
}
- isAttacked(sq, color
s
) {
+ isAttacked(sq, color) {
return (
return (
- super.isAttacked(sq, color
s
) ||
- this.isAttackedByMarshall(sq, color
s
) ||
- this.isAttackedByCardinal(sq, color
s
)
+ super.isAttacked(sq, color) ||
+ this.isAttackedByMarshall(sq, color) ||
+ this.isAttackedByCardinal(sq, color)
);
}
);
}
- isAttackedByMarshall(sq, color
s
) {
+ isAttackedByMarshall(sq, color) {
return (
return (
- this.isAttackedBySlideNJump(sq, color
s
, V.MARSHALL, V.steps[V.ROOK]) ||
+ this.isAttackedBySlideNJump(sq, color, V.MARSHALL, V.steps[V.ROOK]) ||
this.isAttackedBySlideNJump(
sq,
this.isAttackedBySlideNJump(
sq,
- color
s
,
+ color,
V.MARSHALL,
V.steps[V.KNIGHT],
"oneStep"
V.MARSHALL,
V.steps[V.KNIGHT],
"oneStep"
@@
-276,12
+276,12
@@
export const VariantRules = class GrandRules extends ChessRules {
);
}
);
}
- isAttackedByCardinal(sq, color
s
) {
+ isAttackedByCardinal(sq, color) {
return (
return (
- this.isAttackedBySlideNJump(sq, color
s
, V.CARDINAL, V.steps[V.BISHOP]) ||
+ this.isAttackedBySlideNJump(sq, color, V.CARDINAL, V.steps[V.BISHOP]) ||
this.isAttackedBySlideNJump(
sq,
this.isAttackedBySlideNJump(
sq,
- color
s
,
+ color,
V.CARDINAL,
V.steps[V.KNIGHT],
"oneStep"
V.CARDINAL,
V.steps[V.KNIGHT],
"oneStep"