https://github.com/immmdreza/sudokusolver
A sudoku solver written in python ( Easy sudoku for now )
https://github.com/immmdreza/sudokusolver
Last synced: 3 months ago
JSON representation
A sudoku solver written in python ( Easy sudoku for now )
- Host: GitHub
- URL: https://github.com/immmdreza/sudokusolver
- Owner: immmdreza
- Created: 2021-08-29T16:51:13.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-29T17:10:29.000Z (almost 4 years ago)
- Last Synced: 2025-01-20T06:45:00.016Z (5 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SudokuSolver
⚠️ Do not visit source code before reading this. you may want to solve it by your ownA sudoku solver written in python ( Easy sudoku for now )
### What's easy sudoku
An easy sudoku has at least one unkown Square which has only one possible value in every solving process. till no unknown square remains.```py
from sudoku_ import Sudoku_s
from solver_ import SudokuSolver_spuzzle = [[5,3,0,0,7,0,0,0,0],
[6,0,0,1,9,5,0,0,0],
[0,9,8,0,0,0,0,6,0],
[8,0,0,0,6,0,0,0,3],
[4,0,0,8,0,3,0,0,1],
[7,0,0,0,2,0,0,0,6],
[0,6,0,0,0,0,2,8,0],
[0,0,0,4,1,9,0,0,5],
[0,0,0,0,8,0,0,7,9]]sudoku_s = Sudoku_s(puzzle)
solver_s = SudokuSolver_s(sudoku_s)if solver_s.full_solve():
print(sudoku_s)```
An answer to [Kata](https://www.codewars.com/kata/5296bc77afba8baa690002d7/)