Swap red/blue in double-elimination Match 11 to match FIRST rules.

This commit is contained in:
Patrick Fairbank
2022-09-07 17:56:23 -07:00
parent 8e46617706
commit d7c3b9df6c
2 changed files with 4 additions and 4 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)