Example #1
0
        public static void CreateNewLeague()
        {
            _scoreboard = new Scoreboard();
            List <Contestant> newPlayers = new List <Contestant>();

            Console.WriteLine("Type number of players: ");
            var count = int.Parse(Console.ReadLine());

            for (int i = 0; i < count; i++)
            {
                Console.WriteLine("Type new contestant's name");
                var newPlayer = new Contestant(Console.ReadLine(), _scoreboard.currentPlayerPosition);
                _scoreboard.currentPlayerPosition += newPlayer.Name.Length + 1;
                newPlayers.Add(newPlayer);
            }
            EndRound(newPlayers);
        }