Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.02 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.02 KB

Artificial Intelligence Nanodegree

Diagonal Sudoku Solver

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.

Install

This project requires Python 3.

Optional: Pygame

Optionally, you can also install pygame if you want to see your visualization. If not, please see how to download pygame here.

Code

  • solution.py - Where my solution exists.
  • solution_test.py - You can test your solution by running python solution_test.py.
  • PySudoku.py - This is code for visualizing the solution.
  • visualize.py -This is code for visualizing the solution.

Visualizing

To visualize your solution, please only assign values to the values_dict using the assign_value function provided in solution.py