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)]]))
+-+-+-+-+
| | |
+ +-+ +-+
| | | |
+ +-+-+ +
| | | |
+-+ +-+-+
| |
+-+-+-+
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.1a0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for pretty_poly-0.3.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3a6fb3809c252cf135e50031317cc0ef3bad18f4984d20caf67fadd435680d6 |
|
MD5 | db4d2cfc5c53e6295539444d2d29f5e8 |
|
BLAKE2b-256 | 9f10944a82f1347c55046fa983a5a165e5c399d1b80487a18c38cab24b967155 |