mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-05-06 06:04:33 +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"
|
if @bracket == "fourPoolsToSemi"
|
||||||
whilePointsAreZero { @points = fourPoolsToSemi }
|
whilePointsAreZero { @points = fourPoolsToSemi }
|
||||||
end
|
end
|
||||||
if wrestler.weight.size <= 6 && wrestler.weight.allPoolMatchesFinished(1)
|
if @wrestler.weight.wrestlers.size <= 6 && @wrestler.weight.allPoolMatchesFinished(1)
|
||||||
whilePointsAreZero { @points = onePool }
|
whilePointsAreZero { @points = onePool }
|
||||||
end
|
end
|
||||||
return @points
|
return @points
|
||||||
@@ -67,14 +67,14 @@ class PoolBracketPlacementPoints
|
|||||||
end
|
end
|
||||||
|
|
||||||
def onePool
|
def onePool
|
||||||
poolOrder = wrestler.weight.poolOrder(1)
|
poolOrder = @wrestler.weight.poolOrder(1)
|
||||||
if wrestler == poolOrder.first
|
if @wrestler == poolOrder.first
|
||||||
firstPlace
|
firstPlace
|
||||||
elsif wrestler == poolOrder.second
|
elsif @wrestler == poolOrder.second
|
||||||
secondPlace
|
secondPlace
|
||||||
elsif wrestler == poolOrder.third
|
elsif @wrestler == poolOrder.third
|
||||||
thirdPlace
|
thirdPlace
|
||||||
elsif wrestler == poolOrder.fourth
|
elsif @wrestler == poolOrder.fourth
|
||||||
fourthPlace
|
fourthPlace
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user