Esempio n. 1
0
        //Purpose:To spin the board and see if the player is awarded
        //and cash
        //Requires:At least one player has a spin
        //Returns::Nothing
        private void SpinButton_Click(object sender, EventArgs e)
        {
            //checks to see if all the players have finished spinning
            if (p1.Espins == 0 && p2.Espins == 0 && p3.Espins == 0)
            {
                MessageBox.Show("No one has any spins left", "Spin", MessageBoxButtons.OK);
                SpinButton.Hide();
                if (round2 == 0)
                {
                    Next_Round_button.Show(); // goes to the next round
                    round2++;                 //icrements it by one so it is unable
                }
                else
                {
                    displayWinners(); // if two rounds played it goes to the winner function
                }
            }

            //if the players have spins
            else
            {
                Question_Box.Hide();
                Boarder_Box.Show();
                playerSpins(); //process the spins
            }
        }
Esempio n. 2
0
 //Purpose: To remove the Question_Box that currently has the
 //Spin instructions
 //Requires:Nothing
 //Returns:Nothing
 private void Begin_Spin_Round_Click(object sender, EventArgs e)
 {
     Question_Box.Hide();
     SpinButton.Show();
     Begin_Spin_Round.Hide();
     Boarder_Box.Show();
     Quit_Button.Show();
     checkSpin(); //checks to see who goes first
 }
Esempio n. 3
0
        //Below are the various functions used that are implemented in
        //the buttons listed above.

        //Purpose: To Hide all Components that are not
        //needed at the begining of the game
        //Requires:Nothing
        //Returns;Nothing
        private void hideComponents()
        {
            Question_Box.Hide();
            Boarder_Box.Hide();
            Answers_Textbox.Hide();
            Answer_Button.Hide();
            Start_Button.Hide();
            Next_Question_Button.Hide();
            SpinButton.Hide();
            Begin_Spin_Round.Hide();
            Spin_Round_Instruction.Hide();
            Set_Name.Hide();
            Player1_textBox.Hide();
            playertwo_TextBox.Hide();
            Playerthree_textBox.Hide();
            Playerthree_label.Hide();
            Playertwo_Label.Hide();
            Playerone_Label.Hide();
            Yes_Button.Hide();
            No_Button.Hide();
            Next_Round_button.Hide();
            Quit_Button.Hide();
        }