mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
A BYE gives 2 points in a pool of you win one pool match. Now have two tests failing with regard to tie breakers. Most likely poorley written tests
This commit is contained in:
@@ -124,6 +124,14 @@ class Wrestler < ActiveRecord::Base
|
||||
pool_matches = allMatches.select{|m| m.bracket_position == "Pool"}
|
||||
pool_matches.select{|m| m.poolNumber == self.generatePoolNumber}
|
||||
end
|
||||
|
||||
def hasAPoolBye
|
||||
if weight.poolRounds(allMatches) > poolMatches.size
|
||||
return true
|
||||
else
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
def championshipAdvancementWins
|
||||
matchesWon.select{|m| m.bracket_position == "Quarter" or m.bracket_position == "Semis"}
|
||||
|
||||
Reference in New Issue
Block a user