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; }
public static bool CanAttackerBeDealtLeathalDamage(AttackerEvaluationParameters p) { var attackerEvaluation = new AttackerEvaluation(p); var results = attackerEvaluation.Evaluate(); return results.ReceivesLeathalDamage; }