Skip to content

saipavan9/Sudoku-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Sudoku Solver by AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages