teijo / jquery-bracket

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

Best of N scored, e.g. Tennis, Squash, ... #147

Open millhoff opened 6 years ago

millhoff commented 6 years ago

Hi there,

I really like the library, but I need to be able to enter scores for tennis matches, e.g. 6:3 6:4 , however currently it seems only one integer can be added. I could use 66, 34 but the numbers would be to close together, so is there a way to make this happen ? Currently I have added

.score { letter-spacing: 3px }

so I can use 66 34 and its sort of working as long as the first set is not lost to 0 as I cannot have a 0 at the front, but still would be nice not to to have to do this workaround. I addition, it the highest score that wins, so the person who loses the first set but wins the next two can't become the winner. a solution would be to add a winner flag for set based scoring.

Thanks Thorsten

teijo commented 6 years ago

Hi Thorsten,

Great to hear you've found the library!

Unfortunately this feature is not currently supported. Only non-hacky workaround I think is to indicate how many matches the participants won in a best-of matchup, i.e. BO 3 the result would be 2-1, 1-2, 0-2, or 2-0, but you couldn't show the actual scores on the tree. You could additionally try to attach more details using the "match information" feature: http://www.aropupu.fi/bracket/#matches

Implementing custom scores might not be too big of a stretch within the current codebase, but there might still be some surprises on the way, even though I've been driving towards a more flexible design.

millhoff commented 6 years ago

Thanks, for the comment and the overall score idea. I am using the library on a wordpress page, so I decided to write a plugin that offers a shortcake where you can specify the correct score. Inside, I simply fix the wrong scores after the draw is displayed. Here is a sample screenshot 2018-05-21_21-42-40 I will open the git repository in a bit once I cleaned up the code, let me know if you are interested in it.

ckarrie commented 4 years ago

Yes, i'm interested :-)

Thimmy74 commented 3 years ago

Hello, I am also very interested to know the solution to the score problems.

xazandesigner commented 9 months ago

My problem is when occurs a double elimination in a match, when no one should advance. In this case, it is impossíble to have the result in the next match.

xazandesigner commented 9 months ago

image