Skip to content

Commit

Permalink
Add draw strength by rank pullup resolution option to preferences.
Browse files Browse the repository at this point in the history
  • Loading branch information
teymour-aldridge committed Jan 24, 2025
1 parent d02465f commit c8ceec2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tabbycat/draw/generator/powerpair.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class BasePowerPairedDrawGenerator(BasePairDrawGenerator):
wins (indicative of having been against easier teams)
"lowest_ds_speaks" - Choose from teams who have the lowest draw strength by
speaks (indicative of having been against easier teams)
"lowest_ds_rank" - Choose from teams who have the lowest straw strength by
rank (i.e. we sum up the rankings of all the previous
opponents and pick the team with the lowest total score).
"pairing_method" - How to pair teams. Permitted values:
(best explained by example, these examples have a ten-team bracket)
Expand Down Expand Up @@ -132,6 +135,7 @@ def _make_raw_brackets(self):
"least_to_date": "npullups",
"lowest_ds_wins": "draw_strength",
"lowest_ds_speaks": "draw_strength_speaks",
"lowest_ds_rank": "draw_strength_rank",
"none": None,
}

Expand Down
1 change: 1 addition & 0 deletions tabbycat/options/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ class DrawPullupRestriction(ChoicePreference):
name = 'draw_pullup_restriction'
choices = (
('none', _("No restriction")),
('least_ds_rank', _("Choose from teams who have the lowest draw strength by rank so far")),
('least_to_date', _("Choose from teams who have been pulled up the fewest times so far")),
('lowest_ds_wins', _("Choose from teams with the lowest draw strength by wins so far")),
('lowest_ds_speaks', _("Choose from teams with the lowest draw strength by speaks so far")),
Expand Down

0 comments on commit c8ceec2

Please sign in to comment.