Esempio n. 1
0
        public static Card GetBlockerThatDealsLeathalDamageToAttacker(Card attacker, IEnumerable<Card> blockers)
        {
            var p = new AttackerEvaluationParameters(attacker, blockers);

            var performance = new AttackerEvaluation(p);
            var results = performance.Evaluate();

            return results.LeathalBlocker;
        }
Esempio n. 2
0
 public static bool CanAttackerBeDealtLeathalDamage(AttackerEvaluationParameters p)
 {
     var attackerEvaluation = new AttackerEvaluation(p);
     var results = attackerEvaluation.Evaluate();
     return results.ReceivesLeathalDamage;
 }