Ejemplo n.º 1
0
        }// end EndGameRound

        /// <summary>
        /// Resets GUI controls/message for a new game
        /// </summary>
        private void ResetGame()
        {
            lblWhoseTurn.Text = Pig_Single_Die_Game.GetFirstPLayersName();

            EnableRollButton();

            DisableHoldButton();

            txtPlayerOneTotal.Text = "0";

            txtPlayerTwoTotal.Text = "0";

            optAnotherGameYes.Checked = false;
        }// end ResetGame
Ejemplo n.º 2
0
        public PigGameForm()
        {
            InitializeComponent();

            Pig_Single_Die_Game.SetUpGame();

            SetDieImage();

            lblWhoseTurn.Text = Pig_Single_Die_Game.GetFirstPLayersName().ToString();

            SetRollMessage();

            SetPlayerScores();
        }