Skip to content

marcoagbarreto/Sudoku_Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku_Solver

This is a program to solve sudokus.

Example

This implementation uses a backtracking algorithm to fill in the empty cells with valid numbers. The valid() function checks if a given number is valid for a given cell by checking the rows, columns, and 3x3 sub-grid that the cell is in. The find_empty() function returns the next empty cell in the board. The above code is just an example and you may need to adjust it to suit your specific requirements.

  1. Edit the board inside sudoku_solver.py
  2. Run sudoku_solver.py
  3. Profit.

Code Usage

clone the repository (no installation required, source files are sufficient):

https://github.com/marcoagbarreto/Sudoku_Solver.git

dependencies:

None

or download and extract the zip into your project folder.

Known limitations:

  • Sudoku format should be in an array form.

About

programming sudoku game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages