X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAlice.js;h=b16d728e8177a663ad267744104ac55c3b459e3d;hb=241bf8f2a9a2c48d793aeb0b1d20207f6371de70;hp=e7daf7f87265e7621522ebb5782b1af63f91f5ee;hpb=31e9e40ad45faba38612982cfb1d6bdfd98ae20f;p=vchess.git diff --git a/client/src/variants/Alice.js b/client/src/variants/Alice.js index e7daf7f8..b16d728e 100644 --- a/client/src/variants/Alice.js +++ b/client/src/variants/Alice.js @@ -25,14 +25,14 @@ export const VariantRules = class AliceRules extends ChessRules { }; } - static getPpath(b) { - return (Object.keys(this.ALICE_PIECES).includes(b[1]) ? "Alice/" : "") + b; - } - static get PIECES() { return ChessRules.PIECES.concat(Object.keys(V.ALICE_PIECES)); } + getPpath(b) { + return (Object.keys(this.ALICE_PIECES).includes(b[1]) ? "Alice/" : "") + b; + } + setOtherVariables(fen) { super.setOtherVariables(fen); const rows = V.ParseFen(fen).position.split("/");