//this is one
public Nodo(Object o, int nh)
{
elemento = new Object[1];
elemento[0] = o;
hijo = new Nodo[nh];
for(int i=0; i<nh; i++)
hijo[i] = null;
cuenta = 1;
}
// this is the other
/**
* Constructor que recibe un arreglo de objetos y nh hijos
* @param o Object[]
* @param nh int
*/
public Nodo(Object o[], int nh)
{
int i, n;
n = o.length;
elemento = new Object[n];
for (i = 0; i < o.length; i++)
elemento[i] = o[i];
hijo = new Nodo[nh];
for(i=0; i<nh; i++)
hijo[i] = null;
cuenta = 1;
}
I was thinking of using a three, inserting in each node a matrix 3*3, i have to automatically generate the posibles moves and make a decision, and i also need to use toogle buttons in the application, instead of just pictures, so i need to make it somehow when you push the toogle button an "X" is written, then, the computer decides, and the toogle button where the computers makes its move must have an "O" on it, so, if any of you could be of any help, please help me .