Skip to main content

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-1.0.0.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

nonogram_cracker-1.0.0-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

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