using System; using System.Collections.Generic; using TheGameExtreme.model.card; namespace TheGameExtreme.model.rule.playRules { public class Descendant : PlayRule { public static readonly String REGLE_DESCENDANT = "Descendant"; override public bool Test(Card playedCard, Stack stack, bool bottomUp, List CurrentHand) { if (!bottomUp && playedCard.Value < stack.Peek().Value) { return true; } return false; } } }