示例#1
0
        public MainWindow()
        {
            InitializeComponent();

            Deck deck = new Deck();

            deck.NewDeck();
            //cardPile.Source = deck.flippedCard.cardBitmap;
            player   = new Player("Jack");
            opponent = new Player("Opponent");
            deck.Shuffle();
            player.DealCards(player, opponent, deck);

            opponentImage.Source = opponent.flippedCard.cardBitmap;
            playerImage.Source   = player.flippedCard.cardBitmap;
        }