A simple array-based class used for maps
Installation
pip install mapascii
Usage Example
from mapascii import Map
#create and display map
#Map(/, columns: int, rows: int, *, empty=' ', clear_screen=False, pixel_size=1)
map = Map(10, 10, empty='#', clear_screen=True)
map[5,5] = '$'
print(map)
Output:
##########
##########
##########
##########
##########
#####$####
##########
##########
##########
##########
Output was squashed because characters are half as wide as they are long.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mapascii-1.0.2.tar.gz
(2.0 kB
view details)
File details
Details for the file mapascii-1.0.2.tar.gz.
File metadata
- Download URL: mapascii-1.0.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b45827988421a46caad7cff6fe425f1a9461635a1919161bf8b55eb3c6c743e
|
|
| MD5 |
7ed7ea62d6fd217ee06267cd938d58b2
|
|
| BLAKE2b-256 |
6fba7db45a9d3afc5baa8d90282715190e682418a87d6e11ee1890657bbd64b9
|