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.
Metadata
Release files for pyNonogram 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyNonogram-1.0.0.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyNonogram-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / pyNonogram-1.0.0.tar.gz
| Download URL | pyNonogram-1.0.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa55ac1abab97e5f63f337fc0f06802131ed678454af6598966f3924bc91edba
|
|
BLAKE2b-256 checksum How to use checksums |
bf0cb35cda8b5fbde489ae3dfd16b867e3088ef48d623b2d3a49c39dcefb0a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / pyNonogram-1.0.0-py3-none-any.whl
| Download URL | pyNonogram-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daab62a19d628ab8d804e5c0f5734619fe8c45aa18a3a2ff144c9c0f1fa54ded
|
|
BLAKE2b-256 checksum How to use checksums |
a79610dcbb3d08810c5aea09f574cfc48625ccc95357a6f9126bcf5670df2f0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|