public MainWindow() { InitializeComponent(); //Init the decks _computerDeck = new DeckOfCards(faces, suits); _playerDeck = new DeckOfCards(faces, suits); dealButton.IsEnabled = false; playerCardCanvas.IsEnabled = false; computerCardLabel.Content = ""; playerCardLabel.Content = ""; computerCardNumberLabel.Content = ""; playerCardNumberLabel.Content = ""; endLabel.Content = ""; shuffledLabel.Content = ""; computerCardCanvas.IsEnabled = false; playerActiveCardCanvas.IsEnabled = false; _computerPlayTimer.Interval = TimeSpan.FromSeconds(_computerDelay); _computerPlayTimer.Tick += ComputerAI; }
public static void Main() { var doc = new DeckOfCards(); doc.GenerateAllCards(); }