File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ matchmaking:
220220# multiplier: 15 # Multiplier for calculating timeouts in matchmaking. Default: smart multiplier calculation.
221221# min_rating_diff: 0 # Minimum rating distance to opponent. Default: 0
222222# max_rating_diff: 300 # Maximum rating distance to opponent.
223- # target_rating_diff: -50 # Rating distance to opponent that is challenged first. Default: 0
223+ # target_rating_diff: 50 # Rating distance to opponent that is challenged first. Default: 0
224224
225225messages:
226226 # Optional substitution keywords (include curly braces):
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ def bot_filter(bot: Bot) -> bool:
9797 return True
9898
9999 def sort_key (bot : Bot ) -> int :
100- return abs (bot .ratings [perf_type ] - ( user_ratings [perf_type ] + matchmaking_type .target_rating_diff ) )
100+ return abs (abs ( bot .ratings [perf_type ] - user_ratings [perf_type ]) - matchmaking_type .target_rating_diff )
101101
102102 bots = sorted (filter (bot_filter , bots ), key = sort_key )
103103 if not bots :
You can’t perform that action at this time.
0 commit comments