X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FKnightmate.js;h=bc886c126216c154cca6e2b13595de160f0993c4;hb=ded43c88fad60fd8f9bb46aabd67f3f2092f65f3;hp=a8d6dc6c965a3aad1f20fd9e27ea7e86ae5abce5;hpb=68e19a449db7a12e0a168e99cd750d985c983ba1;p=vchess.git diff --git a/client/src/variants/Knightmate.js b/client/src/variants/Knightmate.js index a8d6dc6c..bc886c12 100644 --- a/client/src/variants/Knightmate.js +++ b/client/src/variants/Knightmate.js @@ -2,7 +2,8 @@ import { ChessRules } from "@/base_rules"; import { ArrayFun } from "@/utils/array"; import { randInt } from "@/utils/alea"; -export const VariantRules = class KnightmateRules extends ChessRules { +export class KnightmateRules extends ChessRules { + static get COMMONER() { return "c"; } @@ -82,4 +83,5 @@ export const VariantRules = class KnightmateRules extends ChessRules { k: 1000 }; } + };