Belot.CombinationFinder.IsConsequent C# (CSharp) Метод

IsConsequent() приватный Метод

private IsConsequent ( Card x, Card y ) : bool
x Card
y Card
Результат bool
        private bool IsConsequent( Card x, Card y )
        {
            if( x.CardType == CardType.Eight && y.CardType == CardType.Seven )
                return true;

            if( x.CardType == CardType.Nine && y.CardType == CardType.Eight )
                return true;

            if( x.CardType == CardType.Ten && y.CardType == CardType.Nine )
                return true;

            if( x.CardType == CardType.Jack && y.CardType == CardType.Ten )
                return true;

            if( x.CardType == CardType.Queen && y.CardType == CardType.Jack )
                return true;

            if( x.CardType == CardType.King && y.CardType == CardType.Queen )
                return true;

            if( x.CardType == CardType.Ace && y.CardType == CardType.King )
                return true;

            else return false;
        }