Esempio n. 1
0
        } //End WantToHold

        /// <summary>
        /// Updates the visual labels on the screen with their appropriate
        /// information and numbers.
        /// Pre: labels hold old score, name and player information and
        /// require updating.
        /// Post: displays all labels that require updated values.
        /// </summary>
        private void UpdateLabels()
        {
            lblCompAt.Text   = Pig.GetPoints(Pig.COMPUTER).ToString();
            lblPlayerAt.Text = Pig.GetPoints(Pig.USER).ToString();
            lblWhosTurn.Text = Pig.playersName[whosTurn].ToString();
        } //End UpdateLabels