Skip to main content

A beautiful Sudoku solver

Project description

XL-Sudoku-Solver

Install

pip install xl-sudoku-solver

Usage

Cmd:

problem1.txt:
9x37xxxx1
xxx6xx5xx
x4xxx1xxx
xxx36x2xx
8xxxxxxx4
xx6x97xxx
xxx5xxx2x
xx7xx3xxx
3xxxx28x9
$ xl-sudoku-solver --time -f problem1.txt
+-----------+-----------+-----------+
| 9 ! 5 ! 3 | 7 ! 2 ! 4 | 6 ! 8 ! 1 |
| 7 ! 8 ! 1 | 6 ! 3 ! 9 | 5 ! 4 ! 2 |
| 6 ! 4 ! 2 | 8 ! 5 ! 1 | 9 ! 3 ! 7 |
+-----------+-----------+-----------+
| 1 ! 7 ! 4 | 3 ! 6 ! 8 | 2 ! 9 ! 5 |
| 8 ! 3 ! 9 | 2 ! 1 ! 5 | 7 ! 6 ! 4 |
| 5 ! 2 ! 6 | 4 ! 9 ! 7 | 3 ! 1 ! 8 |
+-----------+-----------+-----------+
| 4 ! 9 ! 8 | 5 ! 7 ! 6 | 1 ! 2 ! 3 |
| 2 ! 1 ! 7 | 9 ! 8 ! 3 | 4 ! 5 ! 6 |
| 3 ! 6 ! 5 | 1 ! 4 ! 2 | 8 ! 7 ! 9 |
+-----------+-----------+-----------+
Cost: 0.171875s

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xl-sudoku-solver-0.0.1.post3.tar.gz (6.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page