public int Drop(TLMBCombination lastDroppedCards, string cardsString) { if (!hand.Contains(cardsString)) { return((int)ErrorCode.TLMB.CARDS_NOT_EXIST); } else if (!hand.CanDrop(cardsString)) { return((int)ErrorCode.TLMB.CANNOT_DROP); } if (lastDroppedCards == null || lastDroppedCards.IsEmpty() || TLMBCombination.CanDefeat(new TLMBCombination(cardsString), lastDroppedCards)) { return((int)ErrorCode.TLMB.NULL); } return((int)ErrorCode.TLMB.CANNOT_DEFEAT); }
public static bool CanDefeat(TLMBCombination current, TLMBCombination previous) { return(current.CanDefeat(previous)); }
public static bool CanDefeat(TLMBCombination current, TLMBCombination previous) { return current.CanDefeat(previous); }