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

MLB Stacks

Open Milkman9691 opened this issue 2 years ago • 1 comments

@DimaKudosh how would one go about creating stacks depending upon slate size? Depending on game slates I am trying to create anywhere from a 2/2/2 with Pitcher stack to a 4/4 stack without Pitcher. Short slates stacks are simple just TeamStack=4-5 players (<5 games). When it comes to the >7 game slates it gets a bit more complicated in how many players and what stack split to utilize. Any help on this would be greatly appreciated

Milkman9691 avatar Apr 27 '22 17:04 Milkman9691

You can do something like this if you're running Python 3.10:

match slatesize:
        case 3:
#stack defined here
            
        case (10|13|14|15):
# stack defined here
            
        case _:
#default stack defined here

norraist avatar Apr 29 '22 22:04 norraist