Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team count other than 2^n #13

Closed
adamelevate opened this issue Nov 13, 2013 · 3 comments
Closed

Team count other than 2^n #13

adamelevate opened this issue Nov 13, 2013 · 3 comments

Comments

@adamelevate
Copy link

when I add more teams to the list it errors out after 16.
Message:
Uncaught TypeError: Cannot read property 'winner' of undefined jquery.bracket.max.js:296

@manishie
Copy link

manishie commented Jan 1, 2014

In case anyone else gets this error message, I was seeing it when I was trying to initialize a bracket that didn't have a number of teams in a power of 2. So I was (stupidly!) trying to initialize it with 19 teams instead of 16.

I'm not sure if that was adamelevate's problem, but that was what caused it for me. Hope this helps someone...

@Wouter0100
Copy link

I'm currently having the same issue using 14 teams.

@teijo
Copy link
Owner

teijo commented Oct 19, 2016

2^n number of team pairs must be given in init. Added extra check that throws an error if invalid size is given. You can now (since 0.8.0) leave teams out by giving null as the team if you miss participants.

Fixed in 7c2d095. Comes to next release.

@teijo teijo closed this as completed Oct 19, 2016
@teijo teijo changed the title Team size beyond 16? Team count other than 2^n Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants