projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Shinobi: no captain in hand
[vchess.git]
/
client
/
src
/
variants
/
Monster.js
diff --git
a/client/src/variants/Monster.js
b/client/src/variants/Monster.js
index
6e3e10c
..
cb29ada
100644
(file)
--- a/
client/src/variants/Monster.js
+++ b/
client/src/variants/Monster.js
@@
-2,6
+2,7
@@
import { ChessRules } from "@/base_rules";
import { randInt } from "@/utils/alea";
export class MonsterRules extends ChessRules {
import { randInt } from "@/utils/alea";
export class MonsterRules extends ChessRules {
+
static IsGoodFlags(flags) {
// Only black can castle
return !!flags.match(/^[a-z]{2,2}$/);
static IsGoodFlags(flags) {
// Only black can castle
return !!flags.match(/^[a-z]{2,2}$/);
@@
-214,4
+215,5
@@
export class MonsterRules extends ChessRules {
const color = this.turn;
return (color == 'w' ? getBestWhiteMove() : getBestBlackMove());
}
const color = this.turn;
return (color == 'w' ? getBestWhiteMove() : getBestBlackMove());
}
+
};
};