예제 #1
0
        public IBoard CloneBoard()
        {
            var b = new TicToeBoard {
                SquaresPlayers = (Player[, ])SquaresPlayers.Clone()
            };

            return(b);
        }
예제 #2
0
        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;
            }
        }