crewchiefpro6
Programmer
Has anyone ever tried to calculate and display a sports ladder? For example, in the drag racing world, if there are 127 entrants in a class I need to display the ladder used during eliminations. The ladder is calculated after first round, so I need to pare up (127 / 2) = 64 race cars. We also rank the cars by their qualifying positions. First round does not need a ladder, since you have no idea who you race in this round. All the later rounds are in order.
With this example there are always 2 cars per race UNLESS there is an uneven number, then one gets a free run by themselves. So there would be (64 / 2) + 1 bye run = 33 races.
The next round divides this by 2 and pares up the remaining cars. This continues until there are 2 cars left.
I would like to create a function to draw a line between the 2 cars and continue until there is one remaining car.
The math should not be difficult, the lines between the cars might be harder. The number of ladder rungs changes each event, since there are never the same number of cars entered.
Any ideas?
Don Higgins
With this example there are always 2 cars per race UNLESS there is an uneven number, then one gets a free run by themselves. So there would be (64 / 2) + 1 bye run = 33 races.
The next round divides this by 2 and pares up the remaining cars. This continues until there are 2 cars left.
I would like to create a function to draw a line between the 2 cars and continue until there is one remaining car.
The math should not be difficult, the lines between the cars might be harder. The number of ladder rungs changes each event, since there are never the same number of cars entered.
Any ideas?
Don Higgins