using System; using System.Collections.Generic; using TheGameExtreme.model.card; namespace TheGameExtreme.model.rule.playRules { public class PasDeDix : PlayRule { public static readonly String REGLE_PASDEDIX = "PasDeDix"; override public bool Test(Card playedCard, Stack stack, bool bottomUp, List CurrentHand) { if ((stack.Peek().Value + 10) == playedCard.Value || (stack.Peek().Value - 10) == playedCard.Value) { return true; } return false; } } }