projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Chakart when landing piece on invisible queen + reserve pieces ordering
[vchess.git]
/
client
/
src
/
variants
/
Makruk.js
diff --git
a/client/src/variants/Makruk.js
b/client/src/variants/Makruk.js
index
2da534f
..
6205f23
100644
(file)
--- a/
client/src/variants/Makruk.js
+++ b/
client/src/variants/Makruk.js
@@
-11,14
+11,15
@@
export class MakrukRules extends ChessRules {
return false;
}
return false;
}
+ static get Monochrome() {
+ 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] }
);
}
);
}
@@
-104,7
+105,7
@@
export class MakrukRules extends ChessRules {
}
isAttackedByBishop(sq, color) {
}
isAttackedByBishop(sq, color) {
- const forward = (
this.turn
== 'w' ? 1 : -1);
+ const forward = (
color
== 'w' ? 1 : -1);
return this.isAttackedBySlideNJump(
sq,
color,
return this.isAttackedBySlideNJump(
sq,
color,