X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAntiking.js;h=f07f6268e738a4597c49168291c035c787f78ff0;hb=e3ef199cdac142f1ca14fa6ceb259eb380f63929;hp=a13247a1997df63874efe1a12421470b3d6a1964;hpb=6808d7a16ec1e761c6a2dffec2281c96953e4d89;p=vchess.git diff --git a/client/src/variants/Antiking.js b/client/src/variants/Antiking.js index a13247a1..f07f6268 100644 --- a/client/src/variants/Antiking.js +++ b/client/src/variants/Antiking.js @@ -3,10 +3,6 @@ import { ArrayFun } from "@/utils/array"; import { randInt } from "@/utils/alea"; export const VariantRules = class AntikingRules extends ChessRules { - static getPpath(b) { - return b[1] == "a" ? "Antiking/" + b : b; - } - static get ANTIKING() { return "a"; } @@ -15,6 +11,10 @@ export const VariantRules = class AntikingRules extends ChessRules { return ChessRules.PIECES.concat([V.ANTIKING]); } + getPpath(b) { + return b[1] == "a" ? "Antiking/" + b : b; + } + setOtherVariables(fen) { super.setOtherVariables(fen); this.antikingPos = { w: [-1, -1], b: [-1, -1] }; @@ -131,7 +131,6 @@ export const VariantRules = class AntikingRules extends ChessRules { getCurrentScore() { if (this.atLeastOneMove()) - // game not over return "*"; const color = this.turn;