Skip to main content

A small array-based class for maps

Project description

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.

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

mapascii-1.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page