public void ConstrainMainPlayerHandDisplay(Trick trick)
 {
     if (trick.GetLeadSuit() == Suit.NONE)
     {
         dm.SetHandInteractable(true);
     }
     else
     {
         dm.ConstrainPlayerHand(trick.GetLeadSuit());
     }
 }
    public List <Card> ConstrainHand(List <Card> hand)
    {
        List <Card> legalHand = new List <Card>();

        if (currentTrick != null)
        {
            int count = 0;

            foreach (Card c in hand)
            {
                if (c.GetSuit() == currentTrick.GetLeadSuit())
                {
                    legalHand.Add(c);
                    count++;
                }
            }

            if (count == 0)
            {
                legalHand = hand;
            }
        }

        return(legalHand);
    }