public int[] AI() { Random random = new Random(); int selection = random.Next(0, (hand.AIHand.Count - 1)); Card aiCard = hand.AIHand[selection]; Console.Write("The AI chose "); aiCard.Print(); int[] suitRank = new int[2] { aiCard.CardSuit(), aiCard.CardRank() }; hand.AIHand.RemoveAt(selection); return(suitRank); }
public int[] Player(int ans) { Card oneCard = hand.playerHand[ans]; Console.Write("The player chose "); oneCard.Print(); string playedCard = oneCard.ReturnCard(); int[] suitRank = new int[2] { oneCard.CardSuit(), oneCard.CardRank() }; hand.playerHand.RemoveAt(ans); return(suitRank); }