1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

Deducted points breaks tie before head to head

This commit is contained in:
2016-01-06 20:26:20 +00:00
parent 4310a7bb42
commit 59f20e1698
3 changed files with 2 additions and 7 deletions

View File

@@ -41,10 +41,10 @@ class PoolOrder
def breakTie def breakTie
originalTieSize = wrestlersWithSamePoints.size originalTieSize = wrestlersWithSamePoints.size
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { deductedPoints }
if originalTieSize == 2 if originalTieSize == 2
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { headToHead } ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { headToHead }
end end
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { deductedPoints }
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { teamPoints } ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { teamPoints }
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostFalls } ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostFalls }
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostTechs } ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostTechs }

View File

@@ -7,8 +7,8 @@
<p>At this moment in time, WrestlingDev supports a pool to bracket type tournament for up to 16 teams. The bracket format follows OHSAA's 5 match per day rule. WrestlingDev will automatically generate brackets, generate bout numbers, generate and update a bout board, track team points, and update brackets.</p> <p>At this moment in time, WrestlingDev supports a pool to bracket type tournament for up to 16 teams. The bracket format follows OHSAA's 5 match per day rule. WrestlingDev will automatically generate brackets, generate bout numbers, generate and update a bout board, track team points, and update brackets.</p>
<p>For pool to bracket tournaments, pool tie breakers are the following:</p> <p>For pool to bracket tournaments, pool tie breakers are the following:</p>
<ul> <ul>
<li>Head to head</li>
<li>Least team points deducted</li> <li>Least team points deducted</li>
<li>Head to head</li>
<li>Most team points scored</li> <li>Most team points scored</li>
<li>Most wins by fall, default, dq</li> <li>Most wins by fall, default, dq</li>
<li>Most wins by tech fall</li> <li>Most wins by tech fall</li>

View File

@@ -96,11 +96,6 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
endMatch(2004,"Guy4",matches) endMatch(2004,"Guy4",matches)
endMatch(2005,"Guy9",matches) endMatch(2005,"Guy9",matches)
endMatch(3004,"Guy7",matches) endMatch(3004,"Guy7",matches)
#DEDUCTED POINTS SHOULD NOT MATTER FOR HEAD TO HEAD
deduct = Teampointadjust.new
deduct.wrestler_id = translateNameToId("Guy3")
deduct.points = 1
deduct.save
endMatch(3005,"Guy3",matches) endMatch(3005,"Guy3",matches)
end end