projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Pandemonium] Forgot reserve in FEN
[vchess.git]
/
client
/
src
/
variants
/
Threechecks.js
diff --git
a/client/src/variants/Threechecks.js
b/client/src/variants/Threechecks.js
index
0525059
..
c297d0a
100644
(file)
--- a/
client/src/variants/Threechecks.js
+++ b/
client/src/variants/Threechecks.js
@@
-1,6
+1,7
@@
import { ChessRules } from "@/base_rules";
export class ThreechecksRules extends ChessRules {
import { ChessRules } from "@/base_rules";
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}$/);
@@
-64,4
+65,5
@@
export class ThreechecksRules extends ChessRules {
// Take number of checks into account
return baseEval/5 - this.checkFlags["w"] + this.checkFlags["b"];
}
// Take number of checks into account
return baseEval/5 - this.checkFlags["w"] + this.checkFlags["b"];
}
+
};
};