X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=5ebe4997741d88d2fb70f8db8825c103618b8505;hb=20620465247585ed4e845885c4d9fee8cd6920c1;hp=42d9bdc8067ab56bd596af84bf73e65496c764b9;hpb=910d631b73cad5ffef1b4461157b704e7e7057d8;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index 42d9bdc8..5ebe4997 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -32,13 +32,26 @@ export const ChessRules = class ChessRules { ////////////// // MISC UTILS + // Some variants don't have flags: static get HasFlags() { return true; - } //some variants don't have flags + } + // Some variants don't have en-passant static get HasEnpassant() { return true; - } //some variants don't have ep. + } + + // Some variants cannot have analyse mode + static get CanAnalyse() { + return true; + } + + // Some variants show incomplete information, + // and thus show only a partial moves list or no list at all. + static get ShowMoves() { + return "all"; + } // Path to pieces static getPpath(b) {