diff --git a/PadelClub/Views/Tournament/Screen/Components/HeadManagerView.swift b/PadelClub/Views/Tournament/Screen/Components/HeadManagerView.swift index 5e5ccf4..f40cb82 100644 --- a/PadelClub/Views/Tournament/Screen/Components/HeadManagerView.swift +++ b/PadelClub/Views/Tournament/Screen/Components/HeadManagerView.swift @@ -63,7 +63,7 @@ struct HeadManagerView: View { while leftToPlace(heads: heads, teamsPerRound: teamsPerRound) > 0 { // maxAssignable: On retire toutes les équipes placées dans les tours précédents, pondérées par leur propagation (puissance du tour) let alreadyPut = teamsPerRound.reduce(0, +) - let headsLeft = alreadyPut == 0 ? teamsInBracket : heads - alreadyPut + let headsLeft = heads - alreadyPut // Calculate how many teams from previous rounds propagate to this round let currentRound = teamsPerRound.count @@ -152,7 +152,7 @@ struct HeadManagerView: View { } result = RoundRule.cumulatedNumberOfMatches(forTeams: count) } - print(index, value, result, count) +// print(index, value, result, count) return result } .reduce(0, +)