A standalone function that returns the solution of a nonogram puzzle.
Project description
Nonogram Cracker
Takes in a nonogram puzzle and returns its solution
Usage
import json
from nonogram_cracker import solve
solution = solve({
"name": "turtle",
"rows": [
[1, 1, 1],
[5],
[3],
[5],
[1, 1]
],
"cols": [
[2, 2],
[3],
[4],
[3],
[2, 2]
]
})
print(json.dumps(solution, indent=2, ensure_ascii=False))
# [
# "█ █ █",
# "█████",
# " ███ ",
# "█████",
# "█ █"
# ]
Input Schema
TODO
Output Schema
TODO
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonogram_cracker-1.0.1.tar.gz.
File metadata
- Download URL: nonogram_cracker-1.0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe58f524d774521b937aeabe2070d1cba80fca0b1f2022488109a03b7e38ac51
|
|
| MD5 |
eb51d7e4d7388375c6a681de23035a96
|
|
| BLAKE2b-256 |
0041f5635842ae2ff21f1b2e2a2f54154b734f5da36d838b79904cee3f87bbe6
|
File details
Details for the file nonogram_cracker-1.0.1-py3-none-any.whl.
File metadata
- Download URL: nonogram_cracker-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48828ca4689a77436c287fdd6c2d8325627c5f81f4cd06dcb11f60bd63f3be6c
|
|
| MD5 |
ae2cccb94822fb35bfd08f7694105768
|
|
| BLAKE2b-256 |
4e2bc278cd08ee9203bdf7615df3aaccecf7f020e146eb7d85d2bdacf1e56d8f
|