Esempio n. 1
0
 public static double PressurePower(this Zone zone) =>
 zone.CardsAttributes(f => f.Rank).Average() * rand.NextDouble();
Esempio n. 2
0
 public static double DefendPower(this Zone zone)
 => zone.CardsAttributes(f => f.Defend).Average();
Esempio n. 3
0
        public static double WithAdditionalPower(this Zone zone, FootballCard additional)
        {
            var defendPower = zone.DefendPower();

            return(defendPower + 0.1 * additional.Rank);
        }
Esempio n. 4
0
 private void DecreaseRankings(Zone zone, int minDecrease, int maxDecrease)
 {
     zone.DecreaseRandomCardRank(rand.Next(minDecrease, maxDecrease));
     zone.RemoveDeadCards();
 }