pydfs-lineup-optimizer icon indicating copy to clipboard operation
pydfs-lineup-optimizer copied to clipboard

Starter

Open Denwen12 opened this issue 3 years ago • 4 comments

I'm trying to force starting players in Mvp slot to confirmed starters , can anyone help with coding that? @DimaKudosh. @sansbacon

Denwen12 avatar Sep 15 '21 20:09 Denwen12

You can achieve this using player groups:

optimizer.add_players_group(PlayersGroup(
    [player for player in optimizer.players if 'MVP' in player.positions and player.is_confirmed_starter],
    min_from_group=1,
))

DimaKudosh avatar Sep 27 '21 19:09 DimaKudosh

@Denwen12 assuming your question is for Fanduel. Im looking at a player CSV for showdown mode....and dont see a column for Confirmed Starter. Do you make one and put a Y or something in a field?

lightninglarry avatar Sep 28 '21 13:09 lightninglarry

You are correct, you make that column and it should say true

On Tue, Sep 28, 2021, 9:36 AM lightninglarry @.***> wrote:

@Denwen12 https://github.com/Denwen12 assuming your question is for Fanduel. Im looking at a player CSV for showdown mode....and dont see a column for Confirmed Starter. Do you make one and put a Y or something in a field?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/297#issuecomment-929217101, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBWO7QR4PT2PWF72ZRM333UEHAGFANCNFSM5EDHH4LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Denwen12 avatar Sep 28 '21 17:09 Denwen12

@Denwen12 how would you tackle this for nba with 2 other non utility spots. Mvp, star, pro positions?

lightninglarry avatar Oct 26 '21 21:10 lightninglarry