Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Math question regarding a Fantasy Sports (snake) draft

If you're familiar with any fantasy sports draft, the draft-order grid looks something like this:

EXAMPLE 1 (3-teams):
Round   Team 1   Team 2   Team 3
  1     1 (1.1)  2 (1.2)  3 (1.3)
  2     6 (2.3)  5 (2.2)  4 (2.1)
  3     7 (3.1)  8 (3.2)  9 (3.3)

The numbers 1-9 represent the overall pick number of the draft.

The items in parentheses represent the round_number and pick_number_of_that_round.

I cannot figure out a formula which converts my overall_pick_number into it's proper pick_number_of_that_round.

In the above example, the number 8 equals 2 (the 2nd pick of the 3rd round). But in a 4-team league, the number 8 equals 4 (the 4th pick of the 2nd round).

EXAMPLE 2 (4-teams):
Round   Team 1   Team 2   Team 3   Team 4
  1     1 (1.1)  2 (1.2)  3 (1.3)  4 (1.4)
  2     8 (2.4)  7 (2.3)  6 (2.2)  5 (2.1)
  3     9 (3.1)  10 (3.2) 11 (3.3) 12 (3.4)

I thought about trying to dynamically build an associative array based on the number of teams in the league containing every pick and which pick it belonged to, but it's just beyond me.

like image 265
Jeff Avatar asked Feb 06 '11 17:02

Jeff


People also ask

How does a snake draft work for fantasy football?

In a Snake Draft, the pick order is reversed each round. Each team manager takes turns drafting unique players via a back-and-forth, round-by-round draft order (i.e., Round One 1-10, Round Two 10-1, Round Three 1-10, Round Four 10-1, etc.) until all roster slots are full.

How do you win snake draft?

Breaking your draft rankings list into tiers is perhaps the most important thing you can do before a snake draft. The key to winning championships is drafting players who can and do outperform their draft position. Tiers are helpful because they quantify the difference in draft round value against each other.

What is the best snake draft position?

If you like to be sly, and who doesn't, see if you can negotiate yourself into the 5th draft position as it's the second best position to be in and represents the best value slot this year. You are also better on the corner at 12 than being stuck with the 10th or 11th pick.

Is snake draft more fair?

Snake ordering minimizes the benefit of drafting before other drafters by letting the other drafters pick before you the next round, making the draft more fair.


2 Answers

I'll modify the answer by missingno to make it twist like a 'snake'

round_number         = ((overall_pick_number - 1) / number_of_teams) + 1
pick_number_of_round = ((overall_pick_number - 1) % number_of_teams) + 1
if (round_number % 2 == 0) {
    pick_number_of_round = number_of_teams - pick_number_of_round + 1
}
like image 181
Nikita Rybak Avatar answered Nov 12 '22 11:11

Nikita Rybak


round_number         = ((overall-1) / number_of_teams) + 1
pick_number_of_round = ((overall-1) % number_of_teams) + 1
like image 26
hugomg Avatar answered Nov 12 '22 11:11

hugomg