projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix shadow piece bug: reserve count is now updated as expected
[vchess.git]
/
client
/
src
/
variants
/
Makruk.js
diff --git
a/client/src/variants/Makruk.js
b/client/src/variants/Makruk.js
index
9f9c37b
..
5561702
100644
(file)
--- a/
client/src/variants/Makruk.js
+++ b/
client/src/variants/Makruk.js
@@
-3,6
+3,7
@@
import { ArrayFun } from "@/utils/array";
import { randInt, shuffle } from "@/utils/alea";
export class MakrukRules extends ChessRules {
import { randInt, shuffle } from "@/utils/alea";
export class MakrukRules extends ChessRules {
+
static get HasFlags() {
return false;
}
static get HasFlags() {
return false;
}
@@
-11,14
+12,19
@@
export class MakrukRules extends ChessRules {
return false;
}
return false;
}
+ static get Monochrome() {
+ return true;
+ }
+
+ static get Notoodark() {
+ return true;
+ }
+
static get PawnSpecs() {
return Object.assign(
{},
ChessRules.PawnSpecs,
static get PawnSpecs() {
return Object.assign(
{},
ChessRules.PawnSpecs,
- {
- twoSquares: false,
- promotions: [V.QUEEN]
- }
+ { promotions: [V.QUEEN] }
);
}
);
}
@@
-135,4
+141,5
@@
export class MakrukRules extends ChessRules {
k: 1000
};
}
k: 1000
};
}
+
};
};