Skip to content

AmitGZ/Sudoku-MATLAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Sudoku-MATLAB

Alt Text

This Script is a Sudoku Solver that solves almost any Sudoku Puzzle by using the Recursive Backtracking Algorithm . Ever tried but stucked on Sudoku Puzzles given in newspapers, magazines and online. You can use this script to get its solution instantly and move further.

  • Every time "New Game" is executed, a Random Solvable board is created.
  • Now, the user can first try to attempt solving it by clicking on the cells and entering values manually. and check if valid at any point by pressing the "Check" button
  • Likewise, values can be removed by pressing on the backspace or delete keys.
  • by clicking the "Solve" button the user can call the recursive backtracking solving algorithm which will solve the current board given it's possible.

Main Algorithm

the solving algorithm works by trying every possible value at a given cell in the board and checking if it is within the rules of sudoku, then continuing on to the next cell, if it reaches a dead end it backtracks to the last possible state by its recursive nature and keeps trying until getting the first possible solution

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages