1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 22:03:49 +00:00

Put finals in same round

This commit is contained in:
2015-12-07 15:24:42 +00:00
parent 5a09c60a41
commit d28e95ed31
4 changed files with 28 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
end
def showMatches
matches = Match.where(weight_id: 5)
matches = Match.where(weight_id: 4)
# matches = @matches.select{|m| m.weight_id == 4}
matches.each do |m|
puts "Bout: #{m.bout_number} #{m.w1_name} vs #{m.w2_name} #{m.bracket_position} #{m.poolNumber}"
@@ -177,19 +177,19 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
def elevenManBracketToFinals
elevenManBracketToSemis
matches = @matches
endMatch(5006,"Guy11",matches)
endMatch(5007,"Guy12",matches)
endMatch(5008,"Guy16",matches)
endMatch(5009,"Guy17",matches)
endMatch(5004,"Guy11",matches)
endMatch(5005,"Guy12",matches)
endMatch(5006,"Guy16",matches)
endMatch(5007,"Guy17",matches)
end
def elevenManBracketFinished
elevenManBracketToFinals
matches = @matches
endMatch(6002,"Guy11",matches)
endMatch(6003,"Guy14",matches)
endMatch(6004,"Guy16",matches)
endMatch(6005,"Guy19",matches)
endMatch(6004,"Guy11",matches)
endMatch(6005,"Guy14",matches)
endMatch(6006,"Guy16",matches)
endMatch(6007,"Guy19",matches)
end
def endMatch(bout,winner,matches)
@@ -457,5 +457,4 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
end
end