projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unambiguous section in the PGN + some fixes + code formatting and fix typos
[vchess.git]
/
client
/
src
/
variants
/
Checkered.js
diff --git
a/client/src/variants/Checkered.js
b/client/src/variants/Checkered.js
index
bca365d
..
79ea63c
100644
(file)
--- a/
client/src/variants/Checkered.js
+++ b/
client/src/variants/Checkered.js
@@
-303,7
+303,8
@@
export class CheckeredRules extends ChessRules {
}
isAttackedByBishop(sq, colors) {
}
isAttackedByBishop(sq, colors) {
- return this.isAttackedBySlideNJump(sq, colors, V.BISHOP, V.steps[V.BISHOP]);
+ return this.isAttackedBySlideNJump(
+ sq, colors, V.BISHOP, V.steps[V.BISHOP]);
}
isAttackedByQueen(sq, colors) {
}
isAttackedByQueen(sq, colors) {
@@
-337,7
+338,7
@@
export class CheckeredRules extends ChessRules {
"c"
]);
let res = kingAttacked
"c"
]);
let res = kingAttacked
- ? [JSON.parse(JSON.stringify(this.kingPos[color]))]
//need to duplicate!
+ ? [JSON.parse(JSON.stringify(this.kingPos[color]))]
: [];
this.turn = color;
return res;
: [];
this.turn = color;
return res;