# send json into object puzzle = PuzzleModel(puzzleJson['id'], puzzleJson['width'], puzzleJson['height'], puzzleJson['puzzle']) # Demonstrate some of the returned values print('You retrieved a puzzle with {0} width x {1} height and ID={2}'.format( puzzle.width, puzzle.height, puzzle.id)) print('Generating solution') # normal single permutation method, works ok.. cannot solve 4*4 with missing last square # ------------------------- p = Processor() squares = p.solve(puzzle) squaresAdvanced = p.advancedSolve(puzzle) #print('Number of squares normal method') #print(len(squares)) #print('Squares normal method') #print(squares) #print('Number of squares advanced method') #print(len(squaresAdvanced)) #print('Squares advanced method') #print(squaresAdvanced) #print('Submitting solution')