I'm trying to encode a Double Elimination tournament where the brackets are based on version 4. The first round should handle all the bikes, so after round 2 there will be no more bytes. It’s hard for me to find real math that determines the number of bytes I need. If someone can help me with the math behind this, we will be very grateful.
There are 4 possible answers for any mod 4 (0,1,2,3) I need to handle bytes at 1,2,3.
An example of what I mean 13 players (13% 4 = 1) so the bracket of the 1st round should look like this: 1vs2 2vs3 3vs4 4vs5 5vs6
and round 2 Winner 7vs Winner 8vs Winner 9vs winner vs winner and then you have a bracket of losers
Basically, if you are familiar with the Challenge website, I want to generate brackets similar to them, but I cannot understand the math behind their definition of bytes.
If someone did something like this, I would be very grateful for his help.
source
share