|
|
|
|
@ -37,6 +37,19 @@ struct LoserBracketFromGroupStageView: View { |
|
|
|
|
_addNewMatch() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Section { |
|
|
|
|
RowButtonView("Intelligent") { |
|
|
|
|
for i in tournament.qualifiedPerGroupStage..<tournament.teamsPerGroupStage { |
|
|
|
|
tournament.groupStages().chunked(into: 2).forEach { gss in |
|
|
|
|
if let gs1 = gss.first, let gs2 = gss.last, let score1 = gs1.teams(true)[safe: i], let score2 = gs2.teams(true)[safe: i] { |
|
|
|
|
print(score1.teamLabel(), "vs", score2.teamLabel()) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
_addNewMatch() |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ForEach(displayableMatches) { match in |
|
|
|
|
|