Esempio n. 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Blackjack"/> class.
 /// </summary>
 /// <param name="dealer">The dealer</param>
 /// <param name="player">The player</param>
 /// <param name="deck">The deck</param>
 public Blackjack(Dealer dealer, Player player, IDeck deck)
 {
     Dealer = dealer;
     Player = player;
     _deck  = deck;
 }
Esempio n. 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Blackjack"/> class.
 /// </summary>
 /// <param name="dealer">The dealer</param>
 /// <param name="player">The player</param>
 public Blackjack(Dealer dealer, Player player) : this(dealer, player, new Deck())
 {
 }