Пример #1
0
 /// <summary>
 /// Constructor for BlackJack game
 /// </summary>
 /// <param name="terminal"></param>
 public BlackJack(ITerminal terminal)
     : base(terminal)
 {
     _terminal = terminal;
     user = new Player(100);
     dealer = new Player(9999999);
     _cardGame = new CardGame(terminal);
 }
Пример #2
0
 /// <summary>
 /// Constructor for Deck Class
 /// </summary>
 /// <param name="cardGame"></param>
 public Deck(CardGame cardGame)
 {
     _avail = Enumerable.Range(0, 51).ToList<int>();
     _cardGame = cardGame;
 }