X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=ec949fcc729fb0a8b5f4348cdca0ef2e215fb114;hb=1be09254408b05e3c1dd43b34e4c06cebd50af72;hp=a0e64bd6067f0d90702aa41cdaf0949441b74223;hpb=665eed903c4f294de82e7cb0ce4026b64fe64765;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index a0e64bd6..ec949fcc 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -80,6 +80,11 @@ export const ChessRules = class ChessRules { return V.ShowMoves; } + // Used for Monochrome variant (TODO: harmonize: !canFlip ==> showFirstTurn) + get showFirstTurn() { + return false; + } + // Some variants always show the same orientation static get CanFlip() { return true; @@ -802,7 +807,6 @@ export const ChessRules = class ChessRules { this.getEnpassantCaptures([x, y], pawnShiftX) ); } - return pMoves; }