Sudoku Puzzle Solver
A python script that solves any given sudoku puzzle.
Pre-requisites
Python must be installed on your machine.
Usage
- Type in a sudoku puzzle in
input.txt
with blank values as0
. Usespaces
to separate the values, go to anew line
to separate rows. Eg.
8 0 0 4 7 3 0 0 0
0 2 6 8 5 1 0 9 0
0 0 5 0 0 0 8 0 0
0 1 3 0 0 8 4 0 0
6 0 7 3 0 2 9 0 0
0 5 0 0 9 7 6 0 8
0 6 2 7 3 0 5 0 0
0 3 0 2 0 0 7 0 6
4 0 0 6 0 0 0 2 0
Here, 0
are the blank spaces.
- Run
run.py
in the terminal/command prompt.