Hi! why doesnt my computermove() get called second time round? Note: computermove() is done to this it out first...
Code:
function onclick(square) {
var value = square.value;
if(value != 'X' && value != 'O')
{
square.value = 'X';
numMoves++;
computermove();
numMoves++;
}
}//function onclick
function computermove(){
if(b1_1.value=" ")
{b1_1.value="O";}
else if(b0_0.value=" ")
{b0_0.value="O";}
}
Comment