private void OrganizeRound()
 {
     if (UpperBracketParticipants.Count == 1 && _lowerBracketParticipants.Count == 1)
     {
         UpperBracketParticipants.Add(_lowerBracketParticipants[0]);
         _lowerBracketParticipants.RemoveAt(0);
         OrganizeRound(ref UpperBracketParticipants);
         _gameStatus = GameStatus.LastGame;
     }
     else if (UpperBracketParticipants.Count > _lowerBracketParticipants.Count)
     {
         OrganizeRound(ref UpperBracketParticipants);
         _gameStatus = GameStatus.UpperBracketGame;
     }
     else
     {
         OrganizeRound(ref _lowerBracketParticipants);
         _gameStatus = GameStatus.LowerBracketGame;
     }
 }
Пример #2
0
        private void OrganizeLowerBracketRound()
        {
            _isPlayingLastRound = false;
            if (UpperBracketParticipants.Count == 1 && _lowerBracketParticipants.Count == 1)
            {
                UpperBracketParticipants.Add(_lowerBracketParticipants[0]);
                _lowerBracketParticipants.RemoveAt(0);
                _isPlayingLastRound = true;
            }

            if (UpperBracketParticipants.Count > _lowerBracketParticipants.Count)
            {
                OrganizeRound(ref UpperBracketParticipants);
                _isPlayingUpperBracket = true;
            }
            else
            {
                OrganizeRound(ref _lowerBracketParticipants);
                _isPlayingUpperBracket = false;
            }
        }