Exemple #1
0
        IPlayer white = new MinMaxCheckers(10); //new NeuralNetwork("jeden");

        #endregion Fields

        #region Constructors

        public MainForm()
        {
            InitializeComponent();

            konfig = new Konfiguracja();
            plansza = new Plansza();

            ruchy = new Ruchy();
            bicia = new Bicia();
            gracz = new Gracz(2);
            gracz.Prepare(plansza, this);
             //   gracz.IsComputer1 = true;
             //   gracz.IsComputer2 = false;
            nowaToolStripMenuItem_Click(null, null);
        }
Exemple #2
0
        public Opcje(Konfiguracja k)
        {
            InitializeComponent();

            konfig = k;

            pictureBox1.BackColor = konfig.kolory[0];
            pictureBox2.BackColor = konfig.kolory[1];
            pictureBox3.BackColor = konfig.kolory[2];
            pictureBox4.BackColor = konfig.kolory[3];
            pictureBox5.BackColor = konfig.kolory[4];
            pictureBox6.BackColor = konfig.kolory[5];
            pictureBox7.BackColor = konfig.kolory[6];
            pictureBox8.BackColor = konfig.kolory[7];
        }