public void NewGame(int boardSize) { ttt.NewGame(boardSize, boardSize); board.ClearAll(); board.Resize(boardSize); board.SetPics(MouseUp); }
private void Form2_Load(object sender, EventArgs e) { board = new Board(tableLayoutPanel1); ttt = new ModuleTTT.TicTacToe { AIEngine = new AIEngine() }; ttt.NewGame(size, winLine); board.Resize(size); board.SetPics(BoardMouseUp); }
public void NewGame() { ttt.NewGame(size, winLine); board.ClearAll(); allowedAction = true; endGame = false; label1.Visible = false; label2.Visible = false; pictureBox1.Visible = false; button2.Visible = false; }