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