In this project,We solve the sudoku using naked twins strategy.There is a special type of sudoku called diagonal sudoku,where with all the rules of sudoku in place, there is a another special rule where the two diagonals also should have 1 to 9 numbers without repetition. I have solved the diagonal sudoku in this project.
This project requires Python 3.
Optionally, you can also install pygame if you want to see your visualization. If not, please see how to download pygame here.
solution.py
- Where my solution exists.solution_test.py
- You can test your solution by runningpython solution_test.py
.PySudoku.py
- This is code for visualizing the solution.visualize.py
-This is code for visualizing the solution.
To visualize your solution, please only assign values to the values_dict using the assign_value
function provided in solution.py