teijo / jquery-bracket

jQuery Bracket library for organizing single and double elimination tournaments
http://aropupu.fi/bracket/
MIT License
483 stars 253 forks source link

Display a bracket without the first round ? #140

Open Nayte91 opened 6 years ago

Nayte91 commented 6 years ago

Hello Teijo,

Thank you again :)

It's quite the same question than the previous one but I feel it's 2 different topics.

Is there a way to start displaying a bracket after the beginning ? Example : my new double bracket begin with players already in losers. So I imagine 2 methods : 1) I can directly insert players in losers, and I have to begin the winners one round "later" 2) I put all my players in winners, and play a "fake round" to send the right one in losers.

For the 2 operations, what I need is to hide the first winner's round. Do you think it's possible ?

Thank you very much in advance,

teijo commented 6 years ago

Hi,

Option 2 is the only way to go at the moment. The bracket is designed so that matches will always propagate based on previous results. There is no way to override that.

Could you explain what causes your tournament to have this kind of configuration? I can only think of an ongoing tournament to be displayed with the bracket, but even then, there would be first round of winners' games anyway, i.e. no "fake rounds" needed, right?

If you want to hack it, you could try to set the first winner bracket round to be e.g. transparent with CSS.

Nayte91 commented 6 years ago

Hello, Thank you for being interested with my case !

It's a very practical situation I experience very often as a fighting games tournament organizator. We usually do tournaments with a large number of players, like 256, 512, ... So we can't affort a single, double-elimination bracket, too huge to use. So we cut this into, for example, 8 groups in the first phase, then the last phase in 1 group with the survivors. Assuming that all the tournament is double-elimination, and we don't want the losers bracket to "reset", we need to import the top 2 (so the 2 guys from the grand final, 1 from winners, 1 from losers) of the 1st phase into the last group, with their position (winners & losers bracket). Sooo as a TO, I just take pen & paper, and make the distribution manually BEFORE entering the results in the tool. Then, I play a first "fake round" to put losers from phase 1 into phase2's losers. If you have troubles to picture my example, I can give you some links :)

I totally understand that I will have to make a function to distribute the players regarding the seeds, but I may need a way in your tool to "hide" a whole first round, maybe like for hiding a match against 2 BYE ?

We think about CSS currently, but I find interesting to submit this case to you.

teijo commented 6 years ago

If you happen to have a visual presentation of this somewhere, by all means, please attach it if it's no trouble.

Nayte91 commented 6 years ago

Allright, here's a typical and public case 👍

On this page, you will see our 16 groups, as we created them like 16 tournaments. Why ? Because we needed to inject the survivors from each groups into this final bracket without resetting positions & seeds. You can notice that we named the first round "Fake" because we had to do it in order to replace players in losers. In this VERY CASE, I merely want to hide the "fake" turn. TY-PI-CAL and happens all the time.

(note: you will also notice that in any group: A, B, L, ... brackets aren't done. Because I want to hide the last match !)

As I'm playing with your JS for my own use, resolving that is my priority.

teijo commented 6 years ago

Hmm, the first link is broken or then it requires login to view.

Nayte91 commented 6 years ago

You're right, it's a logged only part, so I corrected my text with good links.