public IBoard CloneBoard() { var b = new TicToeBoard { SquaresPlayers = (Player[, ])SquaresPlayers.Clone() }; return(b); }
protected void Form1_Load(object sender, EventArgs e) { gmBoard = new TicToeBoard(); var list = Controls.OfType <Button>().Cast <Control>().ToList(); foreach (var i in list) { i.Text = ""; i.Enabled = true; } }