Esempio n. 1
0
 public Minesweeper_Form(Form_Client parent, string enemey_name1, bool turn)
 {
     InitializeComponent();
     enemey_name = enemey_name1;
     parent_form = parent;
     Build_Bord();
     playing       = true;
     bombs_left    = 40;
     label_vs.Text = parent_form.UserName + " vs " + enemey_name;
     bomb_active   = false;
     if (turn)
     {
         myturn               = true;
         Label_Turn.Text      = "Your turn";
         Label_Turn.ForeColor = Color.Red;
     }
     else
     {
         myturn               = false;
         Label_Turn.Text      = enemey_name + "'s turn";
         Label_Turn.ForeColor = Color.Blue;
     }
 }
Esempio n. 2
0
 public Snake_Form(Form_Client parent1)
 {
     InitializeComponent();
     parent_form = parent1;
 }