public static Pairing GetPairing(PairingSystems System, int CurrentRound)
        {
            switch (System)
            {
            case PairingSystems.RoundRobin:
                return(new RoundRobin(CurrentRound));

            case PairingSystems.PlayOff:
                return(new PlayOff(CurrentRound));

            case PairingSystems.Swiss:
                return(new Swiss(CurrentRound));

            default:
                return(new RoundRobin(CurrentRound));
            }
        }
Esempio n. 2
0
        public static Pairing GetPairing(PairingSystems System, List <Player> Players)
        {
            switch (System)
            {
            case PairingSystems.RoundRobin:
                return(new RoundRobin(Players));

            case PairingSystems.PlayOff:
                return(new PlayOff());

            case PairingSystems.Swiss:
                return(new Swiss());

            default:
                return(new RoundRobin(Players));
            }
        }