1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-05-19 11:33:49 +00:00

Added 16 man modified double elimination bracket type. Still need to fix swap wrestlers code.

This commit is contained in:
2020-01-23 07:46:23 -05:00
parent 314124107c
commit ff102a1862
18 changed files with 744 additions and 265 deletions

View File

@@ -33,8 +33,10 @@ class GenerateTournamentMatches
def generate_raw
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"
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"
end
def standardStartingActions
@@ -45,7 +47,7 @@ class GenerateTournamentMatches
end
def postMatchCreationActions
moveFinalsMatchesToLastRound
moveFinalsMatchesToLastRound if @tournament.tournament_type == "Pool to bracket"
assignBouts
assignFirstMatchesToMats
@tournament.curently_generating_matches = nil