예제 #1
0
파일: Game.cs 프로젝트: tfahnbulleh/WarCard
 //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();
 }
예제 #2
0
파일: Game.cs 프로젝트: tfahnbulleh/WarCard
 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();
 }