Raz 1 year ago
parent 290aad40a4
commit 940f9ed146
  1. 13
      PadelClub/Views/GroupStage/LoserBracketFromGroupStageView.swift

@ -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

Loading…
Cancel
Save