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
- Host: GitHub
- URL: https://github.com/dpbm/snail-matrix
- Owner: Dpbm
- Created: 2024-11-22T20:04:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T00:15:14.000Z (over 1 year ago)
- Last Synced: 2025-03-20T05:17:50.577Z (over 1 year ago)
- Topics: algorithms, css, html, js, matrices, snail-matrix, web
- Language: JavaScript
- Homepage: https://dpbm.github.io/snail-matrix/
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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/)