I am creating a blackjack game and so far I have made a card class, I started to make a deck class but I am not sure on how to set up the cards with values taken from the arrays. Also I have to use the arrays in my deck class to do this.
Any help would be appreciated
Here is what I have so far for my deck class
class Deck
{
private const Int32 MAXCARDS = 52;
private Card[] _cards = new Card[MAXCARDS];
Card.SUIT[] suits = { Card.SUIT.SPADES, Card.SUIT.HEARTS, Card.SUIT.DIAMONDS, Card.SUIT.CLUBS };
String[] values = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };
public Card()
{
}
public Card GetCard(Int32 index)
{
}
public Card SetCard(Int32 index, Card Card)
{
}
}
}