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
nonogram_cracker-0.3.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for nonogram_cracker-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9b028c2a0fdf2810b4e865c61b51c4684204a1956beae804ab2a0f12c7b3a0 |
|
MD5 | adb1cf2afec9023576af01e3ccd24c09 |
|
BLAKE2b-256 | 358e38a58a31920f88480ee2fd454bd53d7d80b7160cd7f131d7a0e1d6f32327 |