Ejemplo n.º 1
0
        private void DeckPB_Click(object sender, EventArgs e)
        {
            bool canDraw = Crazy_Eights_Game.AddFromDeck();

            if (!canDraw)
            {
                InstructionText.Text = canDrawText;
            }
            if (canDraw)
            {
                Crazy_Eights_Game.DeckDiscardSwap();
                Crazy_Eights_Game.ComputerTurn();
            }
            Crazy_Eights_Game.DeckDiscardSwap(); //in case computer draws and now resets deck
            RefreshScreen();
        }