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
from nonogram_cracker import solve
print(solve(sample_input))
Sample Input
{
"name": "turtle",
"rows": [
[1, 1, 1],
[5],
[3],
[5],
[1, 1]
],
"cols": [
[2, 2],
[3],
[4],
[3],
[2, 2]
]
}
Sample Output
{
"name": "turtle",
"solution": [
"█ █ █",
"█████",
" ███ ",
"█████",
"█ █"
]
}
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
nonogram_cracker-0.1.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for nonogram_cracker-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e4bd19d36ef782314110c2bc12fab8220c3fcbac58abe20ae7714676c68c8c6 |
|
MD5 | edef5f80ca31d8a53eaa216e815703f0 |
|
BLAKE2b-256 | 2b3671f00c966d8b523dffc919a24e2854f1d0ad676edad81895df0d1e4cc0f9 |