Posts tagged "Draft Lottery"


Real players leagues created during the current playoffs now include draft lottery results

In real life, the draft lottery happens in the middle of the playoffs.

In BBGM, the draft lottery happens after the playoffs.

This poses a little bit of a problem when real players leagues are started in BBGM after the draft lottery has happened, but before the playoffs have ended. Because in real life the lottery is over so a lot of people want those results in their BBGM leagues, but in BBGM the lottery hasn't happened yet.

Read more...


The Universal Draft Lottery Simulator

July 7, 2022-

Earlier today I released an update allowing the draft lottery to be customized, rather than only having a handful of preset options. You can set the number of picks to determine in the lottery, and set the odds for each team.

Previously, my draft lottery odds calculation code didn't support this kind of thing. Originally it was 3 hardcoded nested loops to handle the 3 picks in the NBA draft lottery. Then when the NBA added a 4th lottery pick, I added another conditional nested loop. At this point it was starting to get pretty ugly. Now the MLB has a 6 team lottery? I'm not doing 6 nested loops. I decided to rewrite it to support any number of picks. That made it easy to support the new custom lottery settings.

While doing that, I figured this might be a fun thing to play with on its own. So I took my lottery code and put it in a little self-contained website called the Universal Draft Lottery Simulator. Kind of silly, I know. But I bet someone will have some fun with it!

Also, it's open source.