Open jauggy opened 1 month ago
Inside balancer_server.ex we have this call
BalanceLib.get_user_rating_rank(userid, rating_type, opts[:fuzz_multiplier])
Maybe the fuzz multiplier get can be a function that takes all the opts.
Keyword.get(opts, :fuzz_multiplier, @fuzz_multiplier)
First check the balance algo
algo = Keyword.get(opts, :algorithm, "loser_picks")
algos_allowing_fuzz = ~w(loser_picks, force_party)
case Enum.member?(algos_allowing_fuzz, algo) do
true -> Keyword.get(opts, :fuzz_multiplier, @fuzz_multiplier)
false -> 0
end
This is a string