X-Git-Url: https://git.auder.net/variants/Baroque/style.css?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FLosers.js;h=1c087eff73a915a0d07ca294743573ee0558f77c;hb=32f6285ee325a14286562a53baefc647201df2af;hp=d752f984bc4f5375ba3b23eba44f7694d812c979;hpb=11482348f50058d235adb89bfc174a1da7c6abc4;p=vchess.git diff --git a/client/src/variants/Losers.js b/client/src/variants/Losers.js index d752f984..1c087eff 100644 --- a/client/src/variants/Losers.js +++ b/client/src/variants/Losers.js @@ -2,7 +2,7 @@ import { ChessRules } from "@/base_rules"; import { ArrayFun } from "@/utils/array"; import { randInt } from "@/utils/alea"; -export const VariantRules = class LosersRules extends ChessRules { +export class LosersRules extends ChessRules { // Trim all non-capturing moves static KeepCaptures(moves) { return moves.filter(m => m.vanish.length == 2);