Programación General > Delphi

 Codigo Fuente Del Sodoku

(1/1)

kllejero911:
Alguien me puede ayudar con el codigo fuente del sodoku en delphi porfavor ?? :comp:

Enko:
En este foro no se hacen tareas.

Si tienes problemas al escribir tu código, no dudes en preguntar lo que te haga falta.

zeraf_:

--- 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:

Navegación

[0] Índice de Mensajes

Ir a la versión completa