Beispiel #1
0
        public static double InterceptPower(this Zone zone)
        {
            var def = zone.CardsAttributes(f => f.Defend).Average() * 0.8;
            var mid = zone.CardsAttributes(f => f.Midfield).Average() * 0.6;

            return((def + mid) / 2);
        }
Beispiel #2
0
        public static double ShootPower(this Zone zone)
        {
            var att  = zone.CardsAttributes(f => f.Attack).Average();
            var rank = zone.CardsAttributes(f => f.Rank).Average();

            return(Math.Min(att, rank));
        }
Beispiel #3
0
        public static double PassPower(this Zone zone)
        {
            var totalAvgDef = zone.CardsAttributes(f => f.Defend).Average();
            var totalAvgMid = zone.CardsAttributes(f => f.Midfield).Average();
            var totalAvgAtt = zone.CardsAttributes(f => f.Attack).Average();

            return((totalAvgDef + totalAvgMid + totalAvgAtt) / 3);
        }
Beispiel #4
0
 public static double PressurePower(this Zone zone) =>
 zone.CardsAttributes(f => f.Rank).Average() * rand.NextDouble();
Beispiel #5
0
 public static double DefendPower(this Zone zone)
 => zone.CardsAttributes(f => f.Defend).Average();