示例#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));
 }
示例#2
0
 public GameModel()
 {
     dealer = new BlackJackHandDealer();
     player = new BlackJackHandPlayer();
     deck   = new Deck();
 }