mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Old tests now pass with single pool placement points. Still need to write tests for single pool placement points
This commit is contained in:
@@ -16,7 +16,7 @@ class PoolBracketPlacementPoints
|
||||
if @bracket == "fourPoolsToSemi"
|
||||
whilePointsAreZero { @points = fourPoolsToSemi }
|
||||
end
|
||||
if wrestler.weight.size <= 6 && wrestler.weight.allPoolMatchesFinished(1)
|
||||
if @wrestler.weight.wrestlers.size <= 6 && @wrestler.weight.allPoolMatchesFinished(1)
|
||||
whilePointsAreZero { @points = onePool }
|
||||
end
|
||||
return @points
|
||||
@@ -67,14 +67,14 @@ class PoolBracketPlacementPoints
|
||||
end
|
||||
|
||||
def onePool
|
||||
poolOrder = wrestler.weight.poolOrder(1)
|
||||
if wrestler == poolOrder.first
|
||||
poolOrder = @wrestler.weight.poolOrder(1)
|
||||
if @wrestler == poolOrder.first
|
||||
firstPlace
|
||||
elsif wrestler == poolOrder.second
|
||||
elsif @wrestler == poolOrder.second
|
||||
secondPlace
|
||||
elsif wrestler == poolOrder.third
|
||||
elsif @wrestler == poolOrder.third
|
||||
thirdPlace
|
||||
elsif wrestler == poolOrder.fourth
|
||||
elsif @wrestler == poolOrder.fourth
|
||||
fourthPlace
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user