import { ChessRules } from "@/base_rules";
-export const VariantRules = class WormholeRules extends ChessRules {
+export class WormholeRules extends ChessRules {
static get HasFlags() {
return false;
}
}
getCurrentScore() {
- if (this.atLeastOneMove())
- return "*";
+ if (this.atLeastOneMove()) return "*";
// No valid move: I lose
return this.turn == "w" ? "0-1" : "1-0";
}