Exemplo n.º 1
0
 public GameModel(Deck deck,
                  BlackJackHandDealer dealer,
                  BlackJackHandPlayer player)
 {
     this.deck   = deck ?? throw new ArgumentNullException(nameof(deck));
     this.dealer = dealer ?? throw new ArgumentNullException(nameof(dealer));
     this.player = player ?? throw new ArgumentNullException(nameof(player));
 }
Exemplo n.º 2
0
 public GameModel()
 {
     dealer = new BlackJackHandDealer();
     player = new BlackJackHandPlayer();
     deck   = new Deck();
 }