public card discard(int index) { card temp = hand[index]; hand.RemoveAt(index); return(temp); }
public card deal() { if (cards.Count > 0) { card temp = cards[0]; cards.RemoveAt(0); } return(null); }
public deck shuffle() { Random rand = new Random(); for (int i = 0; i < 300; i++) { int randomcard1 = rand.Next(0, 52); int randomcard2 = rand.Next(0, 52); card temp = cards[randomcard1]; cards[randomcard1] = cards[randomcard2]; cards[randomcard2] = temp; } return(null); }