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";
}
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] };
getCurrentScore() {
if (this.atLeastOneMove())
- // game not over
return "*";
const color = this.turn;
}
static get VALUES() {
- return Object.assign(ChessRules.VALUES, { a: 1000 });
+ return Object.assign(
+ { a: 1000 },
+ ChessRules.VALUES
+ );
}
static GenRandInitFen() {