Skip to main content

squiral - square spiral

Project description

squiral

made-with-python
pre-commit.ci status Python lint&test Publish Python Package

square spiral

Welcome to Squiral!
Here is an example:
21 22 23 24 25
20  7  8  9 10
19  6  1  2 11
18  5  4  3 12
17 16 15 14 13

The basic idea behind printing this matrix is
to start from the middle of the matrix and then moving:
right >> down >> left >> up
and not returning to the same row again.

Install

pip install squiral

Usage

>>> import squiral as sq
>>> sq.printout(sq.produce(5))
21 22 23 24 25
20  7  8  9 10
19  6  1  2 11
18  5  4  3 12
17 16 15 14 13
>>>

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

squiral-0.1.7.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

squiral-0.1.7-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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