Esempio n. 1
0
        public SingleElimitationTournament(List <string> players)
        {
            var singleconstructor = new SingleConstructorTournament();

            _tournamentRounds = singleconstructor.CreateTournament(players);
            IndexOfRound      = 0;
        }
        public DoubleEliminationTournament(List <string> players)
        {
            var doubleConstructorTournament = new DoubleGridConstructor();
            var singleConstructorTournament = new SingleConstructorTournament();

            _lowerGrid = doubleConstructorTournament.CreateTournamentGrid(players.Count);
            _upperGrid = singleConstructorTournament.CreateTournament(players);

            _finalUpperAndLowerGrids = new Meeting();
            _upperGrid[_upperGrid.Count - 1].Meetings[0].NextStage = _finalUpperAndLowerGrids;
            _lowerGrid[_lowerGrid.Count - 1].Meetings[0].NextStage = _finalUpperAndLowerGrids;

            IndexOfRound        = 0;
            IndexOfMatch        = 0;
            _indexLowerRounds   = 0;
            _indexLowerMeetings = 0;
        }