teijo / jquery-bracket

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

Second round matches do not respect away/home team order #155

Open severinocasanova opened 5 years ago

severinocasanova commented 5 years ago

I think it would be a cool option to have the Away team above the Home team in every match. I can define this for the first round, but the second round is calculated based on the scores of the first round. If two home teams win in the first round, this system will currently put the winning team of the top match as the "away team" and the winner of the match under it as the "home team" for when the winners need to play each other in the second round. USSSA rules, and many others, state that the higher seed should be the "Home team". In my matches array that generates the data to feed into the JQuery data for this application, it knows who is the away team and who is the home team and what score each team has, but I don't know which order to put the scores in the data that this jquery application needs because it is based on the winner and order of the previous matches rather than based on the away score always first and the home score always second. Maybe someone has a way around this already? bracket-issue