Skip to content

dbrown92700/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Solver

  • Save your puzzle as a text file (with .txt extension) using dashes and digits as shown below.
  • Run with python3 main.py.
  • Program will present a menu of all .txt files in the directory and ask for which one to solve.

Currently a single pass will do multiple iterations eliminating candidate values, looking for unique row, column and cell values, looking for pairs, and using the x-wing method before prompting the user to continue. Continuing will run through another set of iterations. The prompt is in place in case the program is unable to solve the puzzle after multiple attempts.

The program currently has no "Advanced" elimination methods like swordfish, etc. and may be unable to complete the puzzle.

Sample Starting Puzzle File

Should contain a 9X9 block of dashes and digits with no exra spacing.

---93---5
96--85---
--3----2-
-----64-2
-958723-1
21649-5-7
-----8--9
32-7---5-
-49----76

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages