- Code: Select all
`def Resolver(Tablero):`

if Explora(Tablero,MAX,MAX) == False:

return false;

if Resuelto(Tablero) == True:

return true;

for j in range(9):

for i in range(9):

if Tablero[i][j] != None:

Valores = EncontrarPosibilidades(Tablero,i,j)

tablero = [None] * 9

for k in range(9):

tablero[k] = [None] * 9

for it in Valores:

for k in range(9):

for l in range(9):

tablero[l][k] = Tablero[l][k]

tablero[i][j] = it

if (Resolver(tablero))

for k in range(9)

for l in range(9)

Tablero[l][k] = tablero[l][k];

return true;

return false;

Screenshot of the editor: http://imageshack.us/a/img194/4031/y4o.png

I have one error in "EncontrarPosibilidades(Tablero,i,j)":

I dont understand (¡it´s indented!)