Skip to content

aman-junaid/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

This contains a java file SudokuSolver which solves 3X3 sudoku and prints the solution.

Unsolved Board :
  -----------------------------------
 |   -   - 3 | 1 -   -   |   -   -   | 
 | 7 -   -   |   -   -   | 2 - 8 -   | 
 |   - 2 - 8 |   -   - 6 | 3 - 1 - 5 | 
  -----------------------------------
 |   - 4 -   |   - 5 - 3 |   - 6 -   | 
 |   - 1 - 6 |   - 8 -   | 5 - 4 -   | 
 |   - 7 -   | 6 - 1 -   |   - 3 -   | 
  -----------------------------------
 | 6 - 8 - 2 | 4 -   -   | 1 - 5 -   | 
 |   - 5 - 7 |   -   -   |   -   - 3 | 
 |   -   -   |   -   - 2 | 8 -   -   | 
  -----------------------------------
Solved Board :
  -----------------------------------
 | 5 - 9 - 3 | 1 - 2 - 8 | 6 - 7 - 4 | 
 | 7 - 6 - 1 | 3 - 4 - 5 | 2 - 8 - 9 | 
 | 4 - 2 - 8 | 7 - 9 - 6 | 3 - 1 - 5 | 
  -----------------------------------
 | 8 - 4 - 9 | 2 - 5 - 3 | 7 - 6 - 1 | 
 | 3 - 1 - 6 | 9 - 8 - 7 | 5 - 4 - 2 | 
 | 2 - 7 - 5 | 6 - 1 - 4 | 9 - 3 - 8 | 
  -----------------------------------
 | 6 - 8 - 2 | 4 - 3 - 9 | 1 - 5 - 7 | 
 | 9 - 5 - 7 | 8 - 6 - 1 | 4 - 2 - 3 | 
 | 1 - 3 - 4 | 5 - 7 - 2 | 8 - 9 - 6 | 
  -----------------------------------
Iterations taken to resolve this board: 697

Similarly you can put uo your unsolved sudoku board and solve it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages