Skip to content

Sudoku solver using backtracking seach with constraints

Notifications You must be signed in to change notification settings

KiwiTank/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

sudoku solver agent

The game of sudoku is well known to many. You are given a 9x9 grid with some fixed values, and to solve the puzzle you must fill the empty cells of the grid such that the numbers 1 to 9 appear exactly once in each row, column, and 3x3 block of the grid.

solver code

The file sudoku.py contains a function called sudoku_solver which takes one sudoku puzzle (a 9x9 NumPy array) as input, and returns the solved sudoku as another 9x9 NumPy array. This is done using a backtracking depth-first search with constraint propagation algorithm.

About

Sudoku solver using backtracking seach with constraints

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages