Example #1
0
        private static List <(int cost, int armor, int damage)> GetCombinations()
        {
            var combinations = new List <(int, int, int)>();
            var count        = 0;

            for (int weaponIndex = 0; weaponIndex < Weapons.Count(); weaponIndex++)
            {
                for (int gearIndex = 0; gearIndex < Gear.Count(); gearIndex++)
                {
                    for (int firstRingIndex = 0; firstRingIndex < Rings.Count(); firstRingIndex++)
                    {
                        for (int secondRingIndex = firstRingIndex + 1; secondRingIndex < Rings.Count(); secondRingIndex++)
                        {
                            count++;
                            var combination = GetCombinationStats(weaponIndex, gearIndex, firstRingIndex, secondRingIndex);
                            combinations.Add(combination);
                        }
                    }
                }
            }

            return(combinations);
        }