An open API service indexing awesome lists of open source software.

https://github.com/dpbm/snail-matrix

A JS algorithm to generate a nxn snail matrix
https://github.com/dpbm/snail-matrix

algorithms css html js matrices snail-matrix web

Last synced: about 2 months ago
JSON representation

A JS algorithm to generate a nxn snail matrix

Awesome Lists containing this project

README

          

# Snail Matrix

Since I started studying computer science, matrix was one of my favorite things on that. However, I'd always struggled with Snail Matrices.

Recently, I've got a test for a job, and I just got stuck in a question about it. I felt terrible, but also motivated to study it and beat it to the ground!

So today, I spent sometime analysing a snail matrix and trying to translated it to code.

To visualize it better, a matrix is drawn in the screen. This way, you can check how it looks like after processing.

## Stack

Everything was done with simple JS/HTML/CSS. Due to that choice, the algorithm is simple to read, and also easy to run on any device.

[check it out!](https://dpbm.github.io/snail-matrix/)