2 Commits

Author SHA1 Message Date
Patrick Fairbank
d7c3b9df6c Swap red/blue in double-elimination Match 11 to match FIRST rules. 2022-09-08 15:59:36 -07:00
unknown
8e46617706 Update match 11 input arrows on bracket 2022-09-08 15:59:33 -07:00
3 changed files with 6 additions and 7 deletions

View File

@@ -90,8 +90,8 @@ var doubleEliminationBracketMatchupTemplates = []matchupTemplate{
matchupKey: newMatchupKey(4, 1),
displayName: "11",
NumWinsToAdvance: 1,
redAllianceSource: newWinnerAllianceSource(3, 1),
blueAllianceSource: newWinnerAllianceSource(3, 2),
redAllianceSource: newWinnerAllianceSource(3, 2),
blueAllianceSource: newWinnerAllianceSource(3, 1),
},
{
matchupKey: newMatchupKey(4, 2),

View File

@@ -122,11 +122,11 @@ func TestDoubleEliminationProgression(t *testing.T) {
matches, err = database.GetMatchesByType("elimination")
assert.Nil(t, err)
if assert.Equal(t, 12, len(matches)) {
assertMatch(t, matches[10], "11", 8, 7)
assertMatch(t, matches[10], "11", 7, 8)
assertMatch(t, matches[11], "12", 4, 3)
}
scoreMatch(database, "11", game.BlueWonMatch)
scoreMatch(database, "11", game.RedWonMatch)
assert.Nil(t, bracket.Update(database, &dummyStartTime))
matches, err = database.GetMatchesByType("elimination")
assert.Nil(t, err)

View File

@@ -382,9 +382,8 @@
<line class="loser" x1="1246.485" y1="746.485" x2="1229.515" y2="729.515"/>
<text transform="translate(926.2617 775.3125)">W</text>
<text transform="translate(926.2617 585.3125)">W</text>
<polyline points="1008,725 984,725 954.488,593.142"/>
<polyline class="coverup" points="1008,656 984,656 955.118,784.297"/>
<polyline points="1008,655 984,655 955.118,783 898,783"/>
<polyline points="955,593 955,655 1008,655"/>
<polyline points="955,783 955,725 1008,725"/>
</g>
<g id="connectors_4_2"{{if (index .Matchups "4_2").IsActive}} class="active"{{end}}>
<rect class="coverup" x="699.216" y="241.054" width="312.117" height="199.156"/>