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
/
Threechecks.js
diff --git
a/client/src/variants/Threechecks.js
b/client/src/variants/Threechecks.js
index
3aa6db9
..
175b124
100644
(file)
--- a/
client/src/variants/Threechecks.js
+++ b/
client/src/variants/Threechecks.js
@@
-1,6
+1,6
@@
import { ChessRules } from "@/base_rules";
import { ChessRules } from "@/base_rules";
-export c
onst VariantRules = c
lass ThreechecksRules extends ChessRules {
+export class ThreechecksRules extends ChessRules {
static IsGoodFlags(flags) {
// 4 for castle + 2 for checks (0,1 or 2)
return !!flags.match(/^[01]{4,4}[012]{2,2}$/);
static IsGoodFlags(flags) {
// 4 for castle + 2 for checks (0,1 or 2)
return !!flags.match(/^[01]{4,4}[012]{2,2}$/);
@@
-25,7
+25,7
@@
export const VariantRules = class ThreechecksRules extends ChessRules {
}
getPpath(b) {
}
getPpath(b) {
- // TODO: !!this.checkFlags condition for printDiagram, but
clearly
not good.
+ // TODO: !!this.checkFlags condition for printDiagram, but
it's
not good.
// This is just a temporary fix.
if (b[1] == 'k' && !!this.checkFlags && this.checkFlags[b[0]] > 0)
return "Threechecks/" + b[0] + 'k_' + this.checkFlags[b[0]];
// This is just a temporary fix.
if (b[1] == 'k' && !!this.checkFlags && this.checkFlags[b[0]] > 0)
return "Threechecks/" + b[0] + 'k_' + this.checkFlags[b[0]];