Beispiel #1
0
 //method to reset the game
 //each player will be given a Score of zero
 public void ResetGame()
 {
     Computer.Reset();
     player.Reset();
     _isDeal     = false;
     _dealNumber = 0;
     DeckOfCard  = new DeckOfCard();
 }
Beispiel #2
0
 public Game(string playerName, PictureBox computerPic = null, PictureBox playerPic = null)
 {
     player              = new Player(playerName);
     Computer            = new Player("Computer");
     computerPictureCard = computerPic;
     playerPictureCard   = playerPic;
     DeckOfCard          = new DeckOfCard();
 }