You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
528 B
26 lines
528 B
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;
|
|
}
|
|
|
|
}
|
|
}
|