Beispiel #1
0
        public SideEnumerator(bool[,] Matrix)
        {
            player      = ((OptimalComputerPlay)Form1.RightPlayer);
            this.Matrix = Matrix;

            Reset();
        }
Beispiel #2
0
        void BeginGame(object sender, EventArgs e)
        {
            button1.Visible = false;
            button2.Visible = false;

            panel1.Visible = false;

            int complexity = GetComplexity();

            if (complexity == 0)
            {
                RightPlayer = new ComputerPlay(RightField);
            }
            else
            {
                RightPlayer = new OptimalComputerPlay(RightField);
            }

            RightPlayer.Oponent = LeftPlayer;
            LeftPlayer.Oponent  = RightPlayer;

            RightPlayer.TransferMove += GameController.Transfer_Move;
            LeftPlayer.TransferMove  += GameController.Transfer_Move;
        }