X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FMakruk.js;h=6205f2300333b40f9f69ef359b2b0b1acca850cc;hb=107dc1bd5361e2538b1551bdcc37c1e90a444b83;hp=2da534f1e22dbc40c07396e37325e1f3027aecf2;hpb=cd49e617866590dbc68530ad961b109cdbe1ce55;p=vchess.git diff --git a/client/src/variants/Makruk.js b/client/src/variants/Makruk.js index 2da534f1..6205f230 100644 --- a/client/src/variants/Makruk.js +++ b/client/src/variants/Makruk.js @@ -11,14 +11,15 @@ export class MakrukRules extends ChessRules { return false; } + static get Monochrome() { + return true; + } + 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) { - const forward = (this.turn == 'w' ? 1 : -1); + const forward = (color == 'w' ? 1 : -1); return this.isAttackedBySlideNJump( sq, color,