pratyaksh52 / sudoku-solver

A sudoku puzzle solver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sudoku Puzzle Solver

A python script that solves any given sudoku puzzle.

Pre-requisites

Python must be installed on your machine.

Usage

  1. Type in a sudoku puzzle in input.txt with blank values as 0. Use spaces to separate the values, go to a new 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.

  1. Run run.py in the terminal/command prompt.

About

A sudoku puzzle solver.


Languages

Language:Python 100.0%