示例#1
0
        public GameViewModel(string name, double money)
        {
            // Initializing objects needed for the game.
            Dealer = new Dealer();
            Player = new Player(name, money);
            Deck   = new Deck
            {
                Cards = DeckHelper.InitializeDeck()
            };

            // Helper method to load up deck with cards.

            Player.Name  = name;
            Player.Money = money;
            Console.WriteLine(Deck.Cards);
            Console.WriteLine();
        }