1
0
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:
2016-01-29 19:22:05 +00:00
parent 14058e6a6c
commit ac28af84a5
3 changed files with 45 additions and 4 deletions

View File

@@ -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