public void DiscardCard(int discarded) { try { var cardInd = CardsInHand.FindIndex(c => c.CardId == discarded); if (cardInd >= 0) { CardsInHand.RemoveAt(cardInd); } if (CardsInHand.Count == 2) { RoundState = RoundState.ChancellorDiscard; } else if (CardsInHand.Count == 1) { } } catch (Exception ex) { Console.WriteLine("DiscardCard.ex :" + ex.Message); } }