teijo / jquery-bracket

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

Add custom session name for teams. #51

Open brownsugar opened 8 years ago

brownsugar commented 8 years ago

I want to define custom session name for each team matches, for example:

teams: [
    "A": ["Team 1", "Team 2"],
    "B": ["Team 3", "Team 4"]
]

and show it on bracket, also can show "Loser of A" or something hint when using double elimination. qq 20160114010359

teijo commented 8 years ago

Are there two requirements? I mean, does the "session name" have another function than just indicating where winner or loser proceeds? Since the "session name" is attached to teams instead of matches, what would be the purpose of it after first round?

If you want to attach data to a specific match, you can use the third value of match results for that: http://www.aropupu.fi/bracket/#matches

brownsugar commented 8 years ago

Yes, I'm sorry I was confused with those two functions, I missed the "Match information" part, and now I get it.

Another requirement is to show a hint of matches (Loser of XX), and the XX can auto defined by plugin, every match has their own name, like A, B, C, ..., Y, Z, AA, AB, ...to make the bracket easier to read.

teijo commented 8 years ago

So something like this (regardless wether it's single or double elimination)?

Double elimination bracket

brownsugar commented 8 years ago

Yes!! That's what I mean :smile:

majtymit commented 8 years ago

+1, would love to see something like this