def solve((rows, problem)): model = solver.solve(problem) print_sudoku_solution(rows, model)
def queens(n): env = solver.solve(queens_problem(n)) if env is None: print 'none' else: show_board(n, env)
def solve(form): rows, problem = read_sudoku_problem(form) model = solver.solve(problem) print_sudoku_solution(rows, model)
def unconstrained_sudoku(n): rows, problem = make_sudoku_grid(n) model = solver.solve(problem) print_sudoku_solution(rows, model)