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"; public Descendant() { } override public bool Test(Card playedCard, Stack stack, bool bottomUp) { if (bottomUp && playedCard.Value > stack.Peek().Value) { return true; } return false; } } }