using System; using TheGameExtreme.model.card; namespace TheGameExtreme.model.rule.playRules { public class PasDeDix : PlayRule { public static readonly String REGLE_PASDEDIX = "PasDeDix"; public PasDeDix() { } public bool Test(Card upStack, Card playedCard) { if ((upStack.Value + 10) == playedCard.Value || (upStack.Value - 10) == playedCard.Value) { return true; } return false; } } }