Beispiel #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     comboBox1.SelectedIndex = comboBox2.SelectedIndex = 0;
     Functions.Precalc();
     _tWhite = TypeOfGamer.Human;
     _tBlack = TypeOfGamer.Human;
     _curPlayer = Player.White;
     _game = new Game(_mainBoard);
     _ai = new AI();
     _lastStep = null;
     pictureBox1.Invalidate();
 }
Beispiel #2
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBox1.SelectedIndex == 0) _tWhite = TypeOfGamer.Human;
     else _tWhite = TypeOfGamer.AI;
     pictureBox1.Invalidate();
 }