Apr-29-2018, 04:43 PM
For help, I give below, the __main__.py concerning the file __init__.py, that of the professionna sudoku solver.
from kudoSudoku import sudoku #puzzle = [[0,2,4,0],[1,0,0,3],[4,0,0,2],[0,1,3,0]] puzzle=[[0,0,9,0,0,0,5,6,2],[0,0,0,9,0,0,0,0,0],[2,0,0,0,0,3,1,7,0],[0,0,0,1,9,0,7,8,0],[0,7,5,0,0,0,0,0,0],[0,0,0,2,5,0,6,3,0], [4,0,0,0,0,8,2,9,0],[0,0,0,7,0,0,0,0,0],[0,0,8,0,0,0,3,5,7]] table = sudoku(puzzle) result = table.solve() print(result)