This is a Python Application that uses backtracking to solve Sudoku Puzzles.
This is a project I decided I wanted to do in order to familiarize myself with Python.
In order to run, clone this repo onto your local machine.
Edit the SudokuSolver.txt file to contain your puzzle. The accepted format is:
(1,9), (2,9), (3,9), ..., (9,9)
(1,8), (2,8), (3,8), ..., (9,8)
(1,7), (2,7), (3,7), ..., (9,7)
...
(1,1), (2,1), (3,1), ..., (9,1)
Where each coordinate represents a cell on the board. Empty cells should have 0s and numbered cells should have the
appropriate number. All coordinates should be comma separated.
Do not add blank lines at the start or end of file.
An example of the top left grid of a puzzle can be found here:
5, 3, 0
6, 0, 0
0, 9, 8
Run the run.sh script. The accepted format is:
./run.sh [puzzle txt file path+name]
or
./run.sh
where SudokuPuzzle.txt is used as the puzzle txt file
Implemented:
- Script
- Puzzle file can be read and stored
- Can solve sudoku puzzles using backtracking
- Puzzle can be printed
Project is: finished
Language used: Python
Version used: 3.8
Created by @cameronmathis - feel free to contact me!