Esempio n. 1
0
 private void GamePlay()
 {
     if (!game.GameOver())
     {
         game.RollBall();
         ++Counter;
         button1.Text = "Roll Again";
         label5.Text  = game.ThrowResults();
         label3.Text  = (game.CurrentScore()).ToString();
         label4.Text  = (game.TotalScore()).ToString();
         label7.Text  = Counter.ToString();
         if (game.GameOver())
         {
             button2.Enabled = true;
             button1.Enabled = false;
             button3.Enabled = false;
             button4.Enabled = false;
         }
     }
 }