Skip to main content

Nonogram framework for Python

Project description

pyNonogram v1.0.0

Framework for puzzle game Nonogram. It was made thinking about projects that aim to solve puzzles. I wanted to create comprehensive library that would take some work of nonogram developers' shoulders.

It is my first package thus, reporting issues and pull request are more than appreciated.

Table of Contents

Installation

Install with pip:

pip install pyNonogram

Documentation

The documentation is available here

Usage

File extension (.non)

Example .non file:

author:Apsurt
date:31.12.23
picture:2
difficulty:2
width:5
height:5
rows:1 3 2,2 3 1 1
columns:1 3 2,3 3 1
solution:001000111011011011100010000100

Note that there is no space before nor after the colon. Separate row or column hints are separated by space character, whereas hints in the same row or column are separated with coma. For row hints in sequence are from left to right, for columns from top to bottom.

Code example

from pyNonogram import Nonogram

my_nonogram = Nonogram()
my_nonogram.load("house.non")

my_nonogram.grid.fill_row(2, 1)

my_nonogram.print()

For more elaborate examples check out GitHub

Contributing

All contributions are welcome. Just keep in mind agenda of this package, lightweight framework. Before creating pull request remember to run tests via:

python setup.py test

License

This project is licensed under the MIT License.

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

pyNonogram-1.0.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyNonogram-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pyNonogram-1.0.0.tar.gz.

File metadata

  • Download URL: pyNonogram-1.0.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyNonogram-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fa55ac1abab97e5f63f337fc0f06802131ed678454af6598966f3924bc91edba
MD5 42e7b8ea8365e55885a46c1d437d9816
BLAKE2b-256 bf0cb35cda8b5fbde489ae3dfd16b867e3088ef48d623b2d3a49c39dcefb0a4b

See more details on using hashes here.

File details

Details for the file pyNonogram-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyNonogram-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for pyNonogram-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daab62a19d628ab8d804e5c0f5734619fe8c45aa18a3a2ff144c9c0f1fa54ded
MD5 5a6f2700fafd86dacc4e0ed806544bd2
BLAKE2b-256 a79610dcbb3d08810c5aea09f574cfc48625ccc95357a6f9126bcf5670df2f0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page