Example #1
0
 public void NewGame(int boardSize)
 {
     ttt.NewGame(boardSize, boardSize);
     board.ClearAll();
     board.Resize(boardSize);
     board.SetPics(MouseUp);
 }
Example #2
0
 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);
 }
Example #3
0
 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;
 }