Source code and some images are here: src
There are things to do for this sudoku game. You should get familiar
with how it works. One thing to do first is obtain a nearly complete "easy"
sudoku starting grid to save as a file. You can find these online. Enter
the starting grid then "Save As".
You can modify the colors and grid to suit your taste.
The assignment here is to enable a "Robot" routine, namely to create a
sudoku solver which correctly fills in all the squares for a solution from
a starting grid--which you saved as files. I don't know how to solve these!
Well, there is surely a mathematical analysis approach, but here we want
to try a mechanical AI-like approach. You want to start a loop in
the robot routine which selects a remaining empty box then tries a
number till success. When there are no more empty boxes, done. It is
possible (likely?) that it is impossible to fill a box with a number
that works which means that some former box number is wrong. In that case,
one must start over.
The solution in code is uknown to me. I'm sure there is a solution in
code if a solution is possible from some starting grid.
Please keep the original file sudoku.py unchanged. Make a copy of your
own, say p15.py, and make attempts on that. You might try some
cosmetic changes to your copy to start. One nice start is to simply
get the "Robot" routine to make one correct number placement at random
for each button press.
We have a sudoku expert in class who can probably help on strategy.