projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Almost completed Empire Chess. Next is Synochess (+ rules translations)
[vchess.git]
/
client
/
src
/
variants
/
Dark.js
diff --git
a/client/src/variants/Dark.js
b/client/src/variants/Dark.js
index
65934e6
..
fd6d571
100644
(file)
--- a/
client/src/variants/Dark.js
+++ b/
client/src/variants/Dark.js
@@
-3,6
+3,7
@@
import { ArrayFun } from "@/utils/array";
import { randInt } from "@/utils/alea";
export class DarkRules extends ChessRules {
+
// Analyse in Dark mode makes no sense
static get CanAnalyze() {
return false;
@@
-269,4
+270,5
@@
export class DarkRules extends ChessRules {
candidates.push(j);
return moves[candidates[randInt(candidates.length)]];
}
+
};