public SideEnumerator(bool[,] Matrix) { player = ((OptimalComputerPlay)Form1.RightPlayer); this.Matrix = Matrix; Reset(); }
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; }