Beispiel #1
0
 private void btnDraw_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Card cardDrawn = deck.Draw(playerIndex);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Beispiel #2
0
            public string DrawCard()
            {
                Card cardDrawn = deck.Draw(playerIndex);

                return(cardDrawn.ToString());
            }