Ejemplo n.º 1
0
 public void reset() //resets the board
 {
     holders = new Holder[3, 3];
     initializeBoard();
     GraphicsPart.setUpCanvas();
     steps = 0;
     if (getWinner() == X || getWinner() == B)
     {
         turn = X;
     }
     else
     {
         turn = O;
     }
     winner = B;
 }