Пример #1
0
        private void ManageIrregularGroup()
        {
            var nativeChallengers    = new List <Challenger>(_challengers);
            var remainingChallengers = FetchRemainigChallengers(ref nativeChallengers);

            var tempGroup = new Group(nativeChallengers, this.GroupLabel, Shuffle, 1);

            tempGroup.ManageRegularGroup();

            var challengersFromRoundOne = tempGroup._challengers;

            Matches.AddRange(tempGroup.Matches);
            Losers.AddRange(tempGroup.Losers);

            nativeChallengers = Enumerable.Concat(remainingChallengers, challengersFromRoundOne).ToList();
            _challengers      = nativeChallengers;
            ManageRegularGroup();
        }
Пример #2
0
 /// <summary>
 /// Combines the losers from the whole tournament into one collection
 /// </summary>
 /// <param name="finalMatch"></param>
 private void AddLosers(Match finalMatch)
 {
     Losers.AddRange(Group1.Losers);
     Losers.AddRange(Group2.Losers);
     Losers.Add(finalMatch.Loser);
 }