Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cityisbetter/naive-suduko-solver
naive sudoku algorithm solves 9x9 sudoku problem. the goal is to assign digits (from 1 to 9) to the empty cells so that every row, column, and subgrid of size 3×3 contains exactly one instance of the digits from 1 to 9.
https://github.com/cityisbetter/naive-suduko-solver
python sudoku sudoku-solver
Last synced: about 2 months ago
JSON representation
naive sudoku algorithm solves 9x9 sudoku problem. the goal is to assign digits (from 1 to 9) to the empty cells so that every row, column, and subgrid of size 3×3 contains exactly one instance of the digits from 1 to 9.
- Host: GitHub
- URL: https://github.com/cityisbetter/naive-suduko-solver
- Owner: CityIsBetter
- Created: 2023-12-21T10:52:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T06:04:25.000Z (about 1 year ago)
- Last Synced: 2023-12-23T07:22:18.020Z (about 1 year ago)
- Topics: python, sudoku, sudoku-solver
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Naive BackTracking Sudoku Solver
The naive algorithm replaces the empty spaces with a digit which is not present in the given row or column or the 3x3 square it is in. It tries to place digits 1-9, if it fits, it moves to next cell and repeats, if the algorithm fails to fit a number, it backtracks to the previous cell and change its digit and tries again, this is the naive backtracting sudoku solver!!.
# Requirments:
- Python
## Usage
NOTE: there are two pre-defined sudokus namely, matrix and matrix2, change the argument passed in the function to get desired output of the sudoku## Future updates
- add a GUI for better visuals## Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.
## References
got the idea to do this from watching a video of ForrestKnight