private void makeAImove() { Jeff.PlaceMark(Spiel.GetFieldAsArray(), out int x, out int y); switch (Spiel.Setzen(x, y)) { case 1: if (x == 0 && y == 0) { lbl00.Text = "O"; } if (x == 1 && y == 0) { lbl10.Text = "O"; } if (x == 2 && y == 0) { lbl20.Text = "O"; } if (x == 0 && y == 1) { lbl01.Text = "O"; } if (x == 1 && y == 1) { lbl11.Text = "O"; } if (x == 2 && y == 1) { lbl21.Text = "O"; } if (x == 0 && y == 2) { lbl02.Text = "O"; } if (x == 1 && y == 2) { lbl12.Text = "O"; } if (x == 2 && y == 2) { lbl22.Text = "O"; } break; case 2: if (x == 0 && y == 0) { lbl00.Text = "X"; } if (x == 1 && y == 0) { lbl10.Text = "X"; } if (x == 2 && y == 0) { lbl20.Text = "X"; } if (x == 0 && y == 1) { lbl01.Text = "X"; } if (x == 1 && y == 1) { lbl11.Text = "X"; } if (x == 2 && y == 1) { lbl21.Text = "X"; } if (x == 0 && y == 2) { lbl02.Text = "X"; } if (x == 1 && y == 2) { lbl12.Text = "X"; } if (x == 2 && y == 2) { lbl22.Text = "X"; } break; default: break; } }