1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-19 05:43:17 +00:00

Move two highest pool seeds match to last pool round

This commit is contained in:
2016-01-22 19:00:15 +00:00
parent 2b1b9270fd
commit 5c71d98998
3 changed files with 69 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ module GeneratesTournamentMatches
destroyAllMatches
buildTournamentWeights
generateMatches
movePoolSeedsToFinalPoolRound
end
def buildTournamentWeights
@@ -51,6 +52,10 @@ module GeneratesTournamentMatches
end
end
def movePoolSeedsToFinalPoolRound
self.weights.each do |w|
w.setOriginalSeedsToWrestleLastPoolRound
end
end
end