示例#1
0
        private void Winners()
        {
            var winner = _game.GetWinner();

            if (winner.Count > 0)
            {
                var sort = winner.OrderByDescending(x => x.Percentage).FirstOrDefault();

                Console.WriteLine($"Årets champion: {sort.FirstName} {sort.LastName} vinnar andel: {sort.Percentage}");
            }
            else
            {
                Console.WriteLine("Ingen användare har spelat mer än 10 matcher");
            }
        }