projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Koth (experimental)
[vchess.git]
/
client
/
src
/
variants
/
Makruk.js
diff --git
a/client/src/variants/Makruk.js
b/client/src/variants/Makruk.js
index
2da534f
..
2eeeaea
100644
(file)
--- a/
client/src/variants/Makruk.js
+++ b/
client/src/variants/Makruk.js
@@
-15,10
+15,7
@@
export class MakrukRules extends ChessRules {
return Object.assign(
{},
ChessRules.PawnSpecs,
return Object.assign(
{},
ChessRules.PawnSpecs,
- {
- twoSquares: false,
- promotions: [V.QUEEN]
- }
+ { promotions: [V.QUEEN] }
);
}
);
}
@@
-104,7
+101,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,