You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 aSingleElimination
andDoubleElmination
type child class.Just off the cuff the following common function calls would need to be available in the
Tournament
class:Additionally some database considerations may need to be made since the current structure uses a
level
andmatch_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.
The text was updated successfully, but these errors were encountered: