1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
private void nouvelle_partie_Click(object sender, System.EventArgs e)
{
int k=0;
this.NomFichier="";
for (k=0;k<101;k++)
{
grid[k]=0;
grid2[k]=0;
}
this.bouton_change.Visible=true;
this.zone_jeu2.Visible=false;
this.zone_essai.Visible=false;
this.zone_essai2.Visible=false;
this.zone_essai.Refresh();
this.zone_jeu.Visible=true;
this.bateau1.Visible=true;
this.bateau2.Visible=true;
this.bateau3.Visible=true;
this.bateau4.Visible=true;
this.bateau5.Visible=true;
bateau5.BackColor=Color.Gray;
bateau4.BackColor=Color.Gray;
bateau3.BackColor=Color.Gray;
bateau2.BackColor=Color.Gray;
bateau1.BackColor=Color.Gray;
lEtat=1;
this.sauver.Enabled=false;
zz=2;
pass=0;
i=0;
m=0;
n=0;
j=0;
l=0;
bombe=0;
bat=0;
num=0;
efface=0;
touche=0;
touche2=0;
var_bat=1;
blok=0;
this.statusBar.Text="le joueur 1 doit placer ses bateaux";
this.zone_jeu.Visible=true;
if (zone_jeu.Visible==true)MessageBox.Show(this,"test"); |