X-Git-Url: https://git.auder.net/assets/rpsls.css?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FLosers.js;h=1c087eff73a915a0d07ca294743573ee0558f77c;hb=1c58eb76b86d89b9aad29920240b12451f77ab95;hp=d752f984bc4f5375ba3b23eba44f7694d812c979;hpb=6b7b2cf720e6255e4da0dc34fee363c456346a58;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);