Description under construction
Project description
pyNonogram
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
TBA
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
Built Distribution
Hashes for pyNonogram-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f382dd315e2760ce6808b0e8d7988325431c7fe1b9495c65c849b50218476857 |
|
MD5 | 5aa7d0c52f80026c8c06f732e27d4bc2 |
|
BLAKE2b-256 | 749c30ffa70c412470848c9d0ad4651afa4a780e094f5f9f655a25bdab1027de |