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

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