Skip to content

Commit

Permalink
Must include C or 1B for FD MLB
Browse files Browse the repository at this point in the history
  • Loading branch information
BenBrostoff committed Jan 29, 2024
1 parent a95d4b0 commit 9b3ab16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion draftfast/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ def __eq__(self, other):
# 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]],
position_per_team_rules=[
[lambda pos: "P" not in pos, 4],
# Must include at least one C or 1B
[lambda pos: pos in ['C', '1B'], 1]
],
)

DK_SOCCER_RULE_SET = RuleSet(
Expand Down

0 comments on commit 9b3ab16

Please sign in to comment.