public static double PressurePower(this Zone zone) => zone.CardsAttributes(f => f.Rank).Average() * rand.NextDouble();
public static double DefendPower(this Zone zone) => zone.CardsAttributes(f => f.Defend).Average();
public static double WithAdditionalPower(this Zone zone, FootballCard additional) { var defendPower = zone.DefendPower(); return(defendPower + 0.1 * additional.Rank); }
private void DecreaseRankings(Zone zone, int minDecrease, int maxDecrease) { zone.DecreaseRandomCardRank(rand.Next(minDecrease, maxDecrease)); zone.RemoveDeadCards(); }