Beispiel #1
0
 public void jouer(Case c, bool verifier,Reversi r)
 {
     if (verifier)
     {
         c.Present_pion = true;
         r.passer();
     }
 }
Beispiel #2
0
 public Case(int a, int b, Reversi courrant)
 {
     i = a;
     j = b;
     r = courrant;
     Point po = new Point(origin.Y+ j*65, origin.X + i*65);
     this.Size = new Size(65, 65);
     this.Location = po;
     this.BorderStyle = BorderStyle.FixedSingle;
 }
Beispiel #3
0
 private void Bt_continue_Click(object sender, EventArgs e)
 {
     if (Tb_Player1.Text.Length != 0)
     {
         if (Tb_player2.Text.Length != 0)
         {
             Program.player1 = Tb_Player1.Text;
             Program.player2 = Tb_player2.Text;
             this.Hide();
             Reversi NewGame = new Reversi(this);
             NewGame.Show();
             Tb_Player1.Text = "";
             Tb_player2.Text = "";
         }
         else
         {
             MessageBox.Show("No name - Player 2!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
         }
     }
     else
     {
         MessageBox.Show("No name - Player 1!", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Beispiel #4
0
        public static void Main()
        {
            Reversi r = new Reversi();

            Application.Run(r);
        }
Beispiel #5
0
 public static void Main()
 {
     Reversi game = new Reversi();
     game.play();
 }