jquery-bracket icon indicating copy to clipboard operation
jquery-bracket copied to clipboard

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

Open millhoff opened this issue 6 years ago • 6 comments

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

millhoff avatar May 18 '18 15:05 millhoff

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.

teijo avatar May 21 '18 01:05 teijo

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.

millhoff avatar May 21 '18 06:05 millhoff

Yes, i'm interested :-)

ckarrie avatar May 31 '20 11:05 ckarrie

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

Thimmy74 avatar Mar 15 '21 23:03 Thimmy74

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 avatar Oct 12 '23 21:10 xazandesigner

image

xazandesigner avatar Oct 12 '23 21:10 xazandesigner