Skip to content

makoru-hikage/sasquare-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SASQUARE

Single Array Square Grid

A representation of a square matrix in with a single array. A Python implementation of https://github.com/makoru-hikage/sasquare-docs

Original implementation here: https://github.com/makoru-hikage/single-array-square

Features

  • Displays a text-based perfect square
  • Highlights a chosen row or column of a perfect square
  • Highlights all four corners of a square
  • Highlights the center of a square
  • Shows a cell's counterpart on the other side of a square

Usage

Can be run in CMD or bash (and any unix terminal). Requires Python 3.

### Assure that sasquare.py has a +x permission
chmod +x sasquare.py
./sasquare.py
## OR
python sasquare.py

Testing

Requires unittest. Just cd into the root of project directory and run this.

python -m unittest -v tests.celltests.TestCellFunctions

License

MIT

Releases

No releases published

Packages

No packages published

Languages