//Copy Maxit from source public maxit(maxit source) { n = source.n; currentPos = source.currentPos; playerScore = source.playerScore; compScore = source.compScore; difficulty = source.difficulty; playersTurn = source.playersTurn; btns = new Button[n]; for (int i = 0; i < n*n; i++) { btns[i] = new Button(); btns[i] = source.btns[i]; } }
public MaxitForm() { InitializeComponent(); this.BackColor = Color.CornflowerBlue; lblChose.Visible = false; game = new maxit(); game.n = 3; //initBtns(game.n); }