X-Git-Url: https://git.auder.net/doc/current/git-logo.png?a=blobdiff_plain;f=client%2Fsrc%2Fbase_rules.js;h=a47b853f439f283a1ee57e419c87afbe17eb4c0f;hb=933fd1f90a080c1a3e477cc36adebb5e8db8a9d3;hp=85f63a2a8d6e3837647a4e99bfe06de110bae852;hpb=a13cbc0f2c8cf46c0584118a11af9e3cd6bbdcb9;p=vchess.git diff --git a/client/src/base_rules.js b/client/src/base_rules.js index 85f63a2a..a47b853f 100644 --- a/client/src/base_rules.js +++ b/client/src/base_rules.js @@ -46,12 +46,19 @@ export const ChessRules = class ChessRules { static get CanAnalyze() { return true; } + // Patch: issues with javascript OOP, objects can't access static fields. + get canAnalyze() { + return V.CanAnalyze; + } // Some variants show incomplete information, // and thus show only a partial moves list or no list at all. static get ShowMoves() { return "all"; } + get showMoves() { + return V.ShowMoves; + } // Turn "wb" into "B" (for FEN) static board2fen(b) {