public override bool CanPutOnTop(Card newCard) { if (newCard.Value == TopCard.Value - 1 && newCard.Suit == TopCard.Suit) return true; if (newCard.Value == CardValue.King && TopCard.Value == CardValue.Ace && newCard.Suit == TopCard.Suit) return true; if (newCard.Value == CardValue.King && TopCard.Value == CardValue.Empty && AvailableSuits.Contains(newCard.Suit)) { DisabledSuit = newCard.Suit; AvailableSuits.Remove(newCard.Suit); return true; } return false; }
public virtual bool CanPutOnTop(Card newCard) { return false; }
public void Add(Card newCard) { newCard.DeckName = Name; Items.Add(newCard); }