Skip to content

Commit

Permalink
Add 4 max non pitcher FD
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBrostoff committed Jan 29, 2024
1 parent 25cea5e commit 93d3351
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions draftfast/rules.py
Expand Up @@ -237,7 +237,13 @@ def __eq__(self, other):
roster_size=ROSTER_SIZE_BY_SITE_BY_SPORT[FAN_DUEL]["MLB"],
salary_max=SALARY_CAP_BY_SITE_BY_LEAGUE[FAN_DUEL]["MLB"],
position_limits=POSITIONS_BY_SITE_BY_LEAGUE[FAN_DUEL]["MLB"],
min_teams=3,
general_position_limits=[],

# "Up to five players from same team, provided one is a pitcher."
# Rules below take 5 and subtract the pitcher to end up in same place.
# Ref: https://support.fanduel.com/s/article/How-many-players-can-I-select-from-one-team
position_per_team_rules=[[lambda pos: "P" not in pos, 4]],
)

DK_SOCCER_RULE_SET = RuleSet(
Expand Down

0 comments on commit 93d3351

Please sign in to comment.