1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-09 23:33:26 +00:00

Added logic for 16 man dobule elminination match generation.

This commit is contained in:
2020-01-23 21:25:25 -05:00
parent ff102a1862
commit 58afc8a485
8 changed files with 365 additions and 16 deletions

View File

@@ -34,9 +34,11 @@ class GenerateTournamentMatches
standardStartingActions
PoolToBracketMatchGeneration.new(@tournament).generatePoolToBracketMatches if @tournament.tournament_type == "Pool to bracket"
ModifiedSixteenManMatchGeneration.new(@tournament).generate_matches if @tournament.tournament_type == "Modified 16 Man Double Elimination"
SixteenManDoubleEliminationMatchGeneration.new(@tournament).generate_matches if @tournament.tournament_type == "Double Elimination 1-6"
postMatchCreationActions
PoolToBracketMatchGeneration.new(@tournament).assignLoserNames if @tournament.tournament_type == "Pool to bracket"
ModifiedSixteenManGenerateLoserNames.new(@tournament).assign_loser_names if @tournament.tournament_type == "Modified 16 Man Double Elimination"
SixteenManDoubleEliminationGenerateLoserNames.new(@tournament).assign_loser_names if @tournament.tournament_type == "Double Elimination 1-6"
end
def standardStartingActions