We will be by running the script in which you have created the functions that you will be using.
%run -i Sudoku.py
puzzle01 = load_puzzle('puzzle01.txt')
display_puzzle(puzzle01)
Now you will now attempt to find a solution to the puzzle
solve(puzzle01)
if solve(puzzle01) is None:
print("No solution exists for this puzzle.")
else:
display_puzzle(solve(puzzle01))
puzzle02 = load_puzzle('puzzle02.txt')
display_puzzle(puzzle02)
Now you will now attempt to find a solution to the puzzle
solve(puzzle02)
if solve(puzzle02) is None:
print("No solution exists for this puzzle.")
else:
display_puzzle(solve(puzzle02))
puzzle03 = load_puzzle('puzzle03.txt')
display_puzzle(puzzle03)
Now you will now attempt to find a solution to the puzzle
solve(puzzle03)
if solve(puzzle03) is None:
print("No solution exists for this puzzle.")
else:
display_puzzle(solve(puzzle03))
puzzle04 = load_puzzle('puzzle04.txt')
display_puzzle(puzzle04)
Now you will now attempt to find a solution to the puzzle
solve(puzzle04)
if solve(puzzle04) is None:
print("No solution exists for this puzzle.")
else:
display_puzzle(solve(puzzle04))