Code needs to be in PYTHON please. Type out to avoid possible messy hand writing
ID: 3823039 • Letter: C
Question
Code needs to be in PYTHON please. Type out to avoid possible messy hand writing.
Sudoko Puzzle Solve
The rules for Sudoko are summarized in the following web site: http://www.counton.org/sudoku/rules-of-sudoku.php Your assignment is to construct a python code to solve the Generic Sudoko problem. The requirements of the assignment are as follows:
a) Input– To start your problem you will need to read in the Sudoko puzzle. Assume that there is a single puzzle per file. Each input file will have one puzzle per line expressed as 81 characters in row major order. The inputs of that line can either be the digits (1-9) or the ‘.’ for a blank line.
b) Given Input (above) you will need to create an internal representation of the Sudoko Puzzle.
c) Code an algorithm to solve a Sudoko Puzzle – try to do your own algorithm.
d) Output – Have the program output the solution to your Sudoko puzzle.
Try to do all of the above within the constraints of a Python Class. We might test out timings of the code for some simple Sudoko puzzles in class.