mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed bug in single pool placement points and wrote tests
This commit is contained in:
@@ -69,14 +69,15 @@ class PoolBracketPlacementPoints
|
||||
def onePool
|
||||
poolOrder = @wrestler.weight.poolOrder(1)
|
||||
if @wrestler == poolOrder.first
|
||||
firstPlace
|
||||
return firstPlace
|
||||
elsif @wrestler == poolOrder.second
|
||||
secondPlace
|
||||
return secondPlace
|
||||
elsif @wrestler == poolOrder.third
|
||||
thirdPlace
|
||||
return thirdPlace
|
||||
elsif @wrestler == poolOrder.fourth
|
||||
fourthPlace
|
||||
return fourthPlace
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
def finalMatchPoints
|
||||
|
||||
Reference in New Issue
Block a user