Display polyominos and polyomino tilings in various pretty formats.
Project description
pretty_poly - a package for displaying polyomino tilings
This is a Python package for displaying polyomino tilings, expressed as lists of lists of (x, y) tuples, in various ways.
>>> from pretty_poly import make_ascii
>>> print(make_ascii([[(0, 0), (0, 1), (0, 2), (1, 1)], [(0, 3), (1, 3), (2, 3), (1, 2)], [(1, 0), (2, 0), (3, 0), (2, 1)], [(3, 1), (3, 2), (2, 2)]]))
+-+-+-+-+
| | |
+ +-+ +-+
| | | |
+ +-+-+ +
| | | |
+-+ +-+-+
| |
+-+-+-+
How to cite this code:
@misc{pretty_poly,
author = {Jack Grahl},
title = {pretty_poly - a package for displaying polyomino tilings},
year = {2021},
howpublished = {\url{https://github.com/jwg4/pretty_poly}},
commit = {...}
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pretty_poly-0.3.2a0.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for pretty_poly-0.3.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd002b8b519d5a421434bb217774e1f80cab9f90c0b4bfbe86c0c9d1262986e4 |
|
MD5 | a557d68b8b9973d73120181dd5c09cea |
|
BLAKE2b-256 | a2e3bd8d9975fe35d70ff1935e8cb4fc40eeecf926d04f68a5ac946d61f5dc8a |