SoloCodigo
Programación General => Delphi => Mensaje iniciado por: kllejero911 en Viernes 2 de Junio de 2006, 14:57
Título:
Codigo Fuente Del Sodoku
Publicado por:
kllejero911
en
Viernes 2 de Junio de 2006, 14:57
Alguien me puede ayudar con el codigo fuente del sodoku en delphi porfavor ?? :comp:
Título:
Re: Codigo Fuente Del Sodoku
Publicado por:
Enko
en
Viernes 2 de Junio de 2006, 23:40
En este foro no se hacen tareas.
Si tienes problemas al escribir tu código, no dudes en preguntar lo que te haga falta.
Título:
Re: Codigo Fuente Del Sodoku
Publicado por:
zeraf_
en
Martes 6 de Junio de 2006, 05:30
Código: Text
void ubicar(int i, int j, matriz mat)
{
int x;
if (i < 9) {
if (j < 9) {
if(mat[i][j] == -1) {
for(x = 1; x <= 9; x++) {
if(NOenfila(x, i, mat) && NOencolumna(x, j, mat) && NOenmatriz(x, i, j, mat)) {
mat[i][j] = x;
ubicar(i, j+1, mat);
mat[i][j] = -1;
}
}
}
else
ubicar(i, j+1, mat);
}
else
ubicar(i+1, 0, mat);
}
else
mostrar(mat);
}
Es tarea pasarlo a Delphi, y terminarlo :P . :comp:
:scream: