예제 #1
0
 public void showInfo()
 {
     labelHouse.Text = "House Hand: \n" + aroid.showHand().ToString() + "\nScore: " + aroid.showHand().BJscore();
     Refresh();
 }
예제 #2
0
파일: Dealer.cs 프로젝트: ms5589/BlackJack3
 /// <summary>
 /// Method that will handle the operation for click event, which adds card.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 internal void handle(object sender, EventArgs e)
 {
     if (guestPlayer.showHand().BJscore() == 21)
     {
         flag = false;
         guestPlayer.outcomeOfRound(Outcome.NotWin);
         housePlayer.outcomeOfRound(Outcome.Win);
         housePlayer.showHand();
         MessageBox.Show("BlackJacK! You Win!");
     }
     if (housePlayer.showHand().BJscore() == 21)
     {
         win++;
         flag = false;
         guestPlayer.outcomeOfRound(Outcome.Win);
         housePlayer.outcomeOfRound(Outcome.NotWin);
         MessageBox.Show("BlackJack!!! You  Win!!");
         housePlayer.showHand();
     }
     guestPlayer.getsCard(d.deal());
     foreach (Observer y in obseveres)
     {
         y();
     }
 }