projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes, work on Eightpieces draft, add a few capturing variants
[vchess.git]
/
client
/
src
/
variants
/
Threechecks.js
diff --git
a/client/src/variants/Threechecks.js
b/client/src/variants/Threechecks.js
index
c1d5c5a
..
f3b7725
100644
(file)
--- a/
client/src/variants/Threechecks.js
+++ b/
client/src/variants/Threechecks.js
@@
-27,7
+27,7
@@
export const VariantRules = class ThreechecksRules extends ChessRules {
getPpath(b) {
// TODO: !!this.checkFlags condition for printDiagram, but clearly not good.
// This is just a temporary fix.
getPpath(b) {
// TODO: !!this.checkFlags condition for printDiagram, but clearly not good.
// This is just a temporary fix.
- if (b[1] == 'k' && this.checkFlags && this.checkFlags[b[0]] > 0)
+ if (b[1] == 'k' &&
!!
this.checkFlags && this.checkFlags[b[0]] > 0)
return "Threechecks/" + b[0] + 'k_' + this.checkFlags[b[0]];
return b;
}
return "Threechecks/" + b[0] + 'k_' + this.checkFlags[b[0]];
return b;
}