Open craigjmidwinter opened 1 year ago
Hello Craig! Thanks for the suggestion, and the thorough description. I'm afraid I don't have the time to implement a large feature from scratch at the moment, but if you get the ball rolling with a PR I will definitely help out.
By the way, I noticed you said "ice as many players as you have available". Do you happen to know if what you're describing is an NHL-only feature, or if the same thing is available for the other sports (especially the NBA)? That would have some implications for the implementation.
If this feature were implemented, do you think it should be a separate button in the extension? Or could it somehow detect that this is what you would want from the league settings? At the moment the extension works only with what's available in the DOM, without any custom API calls, but of course adding API calls could be possible.
At least in the league that I'm in when you specify the max amount of players, the way it works is as long as you are under the max before the day starts on Sunday, you can ice as many players as you have available on Sunday. So the optimal strategy is to either aim for Monday-Saturday ice (
limit-1
) and then max out sunday, or just go over the limit on the Saturday if it ends up resulting in more players that way.It would be cool to have a feature to optimize the picks for the week. The way I see this working would be:
limit-1
players, then fill the next day with every available player and store that as another potential line-up combo