public BlackJack(int nrOStacks) { deck = new Deck(nrOStacks); players = new List<Player>(); DealersHand = new List<Card>(); Init(); }
public static void Main() { Player p = new Player("Jedi", 100); p.AddCard(new Card(Card.Suit.DIAMONDS, "A")); p.AddCard(new Card(Card.Suit.DIAMONDS, "A")); p.AddCard(new Card(Card.Suit.DIAMONDS, "10")); p.AddCard(new Card(Card.Suit.DIAMONDS, "K")); Deck d = new Deck(); d.Shuffle(); Console.WriteLine(p.GetValue()); Console.ReadLine(); }