Skip to content

Commit

Permalink
Merge pull request #4 from nikitamahoviya/squiral
Browse files Browse the repository at this point in the history
Changed the badges and case.
  • Loading branch information
sadikkuzu authored Jul 4, 2021
2 parents 8624ce8 + e0f62b6 commit 7b422d3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# squiral
![](https://img.shields.io/pypi/v/squiral)
[![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
![]( https://img.shields.io/pypi/pyversions/squiral.svg )

**squ**are sp**iral**

Expand All @@ -10,3 +13,26 @@ Here is an example:
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
```

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

### Install

````pip install squiral````

#### Usage

```python
>>> 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
>>>
```

0 comments on commit 7b422d3

Please sign in to comment.