sudsoln
A n ** 2-by-n ** 2 sudoku solver.
Installation
To install, type:
pip install sudsoln
To update, type:
pip install sudsoln --upgrade
A very brief introduction to sudsoln
import sudsoln as ss
eg = '6.5..7..1.1..2..5......6..33.2.......4.....8.......9.52..9......6..1..2.5..3..7.6'
eg = ss.to_sudoku(eg)
eg
#> Sudoku(
#> 6 . 5 | . . 7 | . . 1
#> . 1 . | . 2 . | . 5 .
#> . . . | . . 6 | . . 3
#> -------------------+-------------------+-------------------
#> 3 . 2 | . . . | . . .
#> . 4 . | . . . | . 8 .
#> . . . | . . . | 9 . 5
#> -------------------+-------------------+-------------------
#> 2 . . | 9 . . | . . .
#> . 6 . | . 1 . | . 2 .
#> 5 . . | 3 . . | 7 . 6
#> n: 3
#> elements: 1, 2, 3, 4, 5, 6, 7, 8, 9
#> empty: .
#> )
eg.solve()
#> ('0:00:00.086731', 0)
eg
#> Sudoku(
#> 6 3 5 | 8 9 7 | 2 4 1
#> 8 1 9 | 4 2 3 | 6 5 7
#> 7 2 4 | 1 5 6 | 8 9 3
#> -------------------+-------------------+-------------------
#> 3 5 2 | 6 8 9 | 1 7 4
#> 9 4 6 | 5 7 1 | 3 8 2
#> 1 8 7 | 2 3 4 | 9 6 5
#> -------------------+-------------------+-------------------
#> 2 7 1 | 9 6 5 | 4 3 8
#> 4 6 3 | 7 1 8 | 5 2 9
#> 5 9 8 | 3 4 2 | 7 1 6
#> n: 3
#> elements: 1, 2, 3, 4, 5, 6, 7, 8, 9
#> empty: .
#> )
eg.is_valid_answer()
#> True
Metadata
Release files for sudsoln 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sudsoln-0.1.0.tar.gz | 35.7 kB | Without provenance | Details for sudsoln-0.1.0.tar.gz |
Release files / sudsoln-0.1.0.tar.gz
| Download URL | sudsoln-0.1.0.tar.gz |
|---|---|
| Size | 35.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a98e6824b1bdbcc3cfe858d7f864ed9f7d4f88d483718cdb0487b0f4888f026
|
|
BLAKE2b-256 checksum How to use checksums |
10579f14f7c280abf19b338dfabb34c27d886cb59b0847503694ca38feebd408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.24.0 CPython/3.7.2
|
Security for sudsoln 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.