void juegaC() //Movimientos maquina
{
if (tablero[0] && tablero[1] == 'O')
{
tablero[2] = 'O';
}
else if (tablero[0] && tablero[2] == 'O')
{
tablero[1] = 'O';
}
else if (tablero[0] && tablero[4] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[3] && tablero[4] == 'O')
{
tablero[5] = 'O';
}
else if (tablero[6] && tablero[7] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[0] && tablero[4] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[2] && tablero[4] == 'O')
{
tablero[6] = 'O';
}
else if (tablero[1] && tablero[4] == 'O')
{
tablero[7] = 'O';
}
else if (tablero[0] && tablero[3] == 'O')
{
tablero[6] = 'O';
}
else if (tablero[2] && tablero[5] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[1] && tablero[0] == 'O')
{
tablero[2] = 'O';
}
else if (tablero[4] && tablero[3] == 'O')
{
tablero[5] = 'O';
}
else if (tablero[7] && tablero[6] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[4] && tablero[0] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[4] && tablero[2] == 'O')
{
tablero[6] = 'O';
}
else if (tablero[4] && tablero[1] == 'O')
{
tablero[7] = 'O';
}
else if (tablero[3] && tablero[0] == 'O')
{
tablero[6] = 'O';
}
else if (tablero[5] && tablero[2] == 'O')
{
tablero[8] = 'O';
}
else if (tablero[2] && tablero[0] == 'O')
{
tablero[1] = 'O';
}
else if (tablero[5] && tablero[3] == 'O')
{
tablero[4] = 'O';
}
else if (tablero[8] && tablero[6] == 'O')
{
tablero[7] = 'O';
}
else if (tablero[8] && tablero[0] == 'O')
{
tablero[4] = 'O';
}
else if (tablero[6] && tablero[2] == 'O')
{
tablero[4] = 'O';
}
else if (tablero[7] && tablero[1] == 'O')
{
tablero[4] = 'O';
}
else if (tablero[6] && tablero[0] == 'O')
{
tablero[3] = 'O';
}
else if (tablero[8] && tablero[2] == 'O')
{
tablero[5] = 'O';
}
else if (tablero[0] && tablero[1] == 'X')
{
tablero[2] = 'O';
}
else if (tablero[0] && tablero[2] == 'X')
{
tablero[1] = 'O';
}
else if (tablero[0] && tablero[4] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[3] && tablero[4] == 'X')
{
tablero[5] = 'O';
}
else if (tablero[6] && tablero[7] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[0] && tablero[4] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[2] && tablero[4] == 'X')
{
tablero[6] = 'O';
}
else if (tablero[1] && tablero[4] == 'X')
{
tablero[7] = 'O';
}
else if (tablero[0] && tablero[3] == 'X')
{
tablero[6] = 'O';
}
else if (tablero[2] && tablero[5] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[1] && tablero[0] == 'X')
{
tablero[2] = 'O';
}
else if (tablero[4] && tablero[3] == 'X')
{
tablero[5] = 'O';
}
else if (tablero[7] && tablero[6] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[4] && tablero[0] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[4] && tablero[2] == 'X')
{
tablero[6] = 'O';
}
else if (tablero[4] && tablero[1] == 'X')
{
tablero[7] = 'O';
}
else if (tablero[3] && tablero[0] == 'X')
{
tablero[6] = 'O';
}
else if (tablero[5] && tablero[2] == 'X')
{
tablero[8] = 'O';
}
else if (tablero[2] && tablero[0] == 'X')
{
tablero[1] = 'O';
}
else if (tablero[5] && tablero[3] == 'X')
{
tablero[4] = 'O';
}
else if (tablero[8] && tablero[6] == 'X')
{
tablero[7] = 'O';
}
else if (tablero[8] && tablero[0] == 'X')
{
tablero[4] = 'O';
}
else if (tablero[6] && tablero[2] == 'X')
{
tablero[4] = 'O';
}
else if (tablero[7] && tablero[1] == 'X')
{
tablero[4] = 'O';
}
else if (tablero[6] && tablero[0] == 'X')
{
tablero[3] = 'O';
}
else if (tablero[8] && tablero[2] == 'X')
{
tablero[5] = 'O';
}
else if (tablero[4] != 'O' || 'X')
{
tablero[4] = 'O';
}
else if (tablero[2] != 'O' || 'X')
{
tablero[2] = 'O';
}
else if (tablero[0] != 'O' || 'X')
{
tablero[0] = 'O';
}
else if (tablero[6] != 'O' || 'X')
{
tablero[6] = 'O';
}
else if (tablero[1] != 'O' || 'X')
{
tablero[1] = 'O';
}
else if (tablero[3] != 'O' || 'X')
{
tablero[3] = 'O';
}
else if (tablero[7] != 'O' || 'X')
{
tablero[7] = 'O';
}
else if (tablero[8] != 'O' || 'X')
{
tablero[8] = 'O';
}