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:
@@ -41,10 +41,10 @@ class PoolOrder
|
||||
|
||||
def breakTie
|
||||
originalTieSize = wrestlersWithSamePoints.size
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { deductedPoints }
|
||||
if originalTieSize == 2
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { headToHead }
|
||||
end
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { deductedPoints }
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { teamPoints }
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostFalls }
|
||||
ifWrestlersWithSamePointsIsSameAsOriginal(originalTieSize) { mostTechs }
|
||||
|
||||
@@ -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>For pool to bracket tournaments, pool tie breakers are the following:</p>
|
||||
<ul>
|
||||
<li>Head to head</li>
|
||||
<li>Least team points deducted</li>
|
||||
<li>Head to head</li>
|
||||
<li>Most team points scored</li>
|
||||
<li>Most wins by fall, default, dq</li>
|
||||
<li>Most wins by tech fall</li>
|
||||
|
||||
@@ -96,11 +96,6 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
|
||||
endMatch(2004,"Guy4",matches)
|
||||
endMatch(2005,"Guy9",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)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user