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

Double Elimination Tournament #2

Open
robweber opened this issue Dec 6, 2022 · 0 comments
Open

Double Elimination Tournament #2

robweber opened this issue Dec 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@robweber
Copy link
Owner

robweber commented Dec 6, 2022

The JQuery Bracket library does allow for both single and double elimination tournaments. Right now only the single elimination style is being used.

Expanding this to allow for the choice between single or double style tournaments would be an interesting enhancement. The backend code for both generating the bracket and advancing the tournament would need to be modified to generate either style tournament structure. To do this a new Python class structure should be developed that encapsulates common method calls in a Tournament type class. This could then be extended into concrete class structures by both a SingleElimination and DoubleElmination type child class.

Just off the cuff the following common function calls would need to be available in the Tournament class:

  • seed_bracket - generate the initial bracket
  • advance_tournament - set the winner of the current active match and advance to the next match
  • find_next_match - given the current match find the next match to be played

Additionally some database considerations may need to be made since the current structure uses a level and match_number system to determine where a match is in the tournament. An additional DB column may be needed to keep track of which bracket everything is in.

Other Considerations

Should the secondary "loser" bracket be separate (determine 3rd and 4th place) or allow for a comeback into the original "winner" bracket? The JQuery lib allows for both but should this be an end-user choice or hard-coded? If a choice how will this affect back end code that runs the tournament structure? It may be minimal or require yet another child class structure.

@robweber robweber added the enhancement New feature or request label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant