示例#1
0
        private static void CreateFixtureListAndDisplay()
        {
            var fixtureList = FixtureList.CreateRandom();

            foreach (var match in fixtureList.Matches)
            {
                var prefix = match.IsAllEnglish ? "*" : " ";
                Console.WriteLine($"{prefix} {match.Home.Name} v {match.Away.Name}");
            }
        }
示例#2
0
        private static Dictionary <int, int> SimulateFixtureLists(int totalNumberOfFixtureLists)
        {
            var results = new Dictionary <int, int> {
                { 0, 0 }, { 1, 0 }, { 2, 0 }
            };

            foreach (var index in Enumerable.Range(0, totalNumberOfFixtureLists))
            {
                var fixtureList = FixtureList.CreateRandom();

                results[fixtureList.NumberOfAllEnglishMatches]++;
            }

            return(results);
        }