Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello there!
For my blot generative art project I decided to make a maze generator for blot. I came up with the algorithm myself a while back and it consists of 4 basic steps:
Thats it, seems pretty simple right? The interesting part I found out as I started the project is that it was the easier part, but it was only ~1/4 of the code. Writing all the support code such as the maze structure and making Blot be able to draw it efficiently was quite the fun challenge.
My previous coding experience lies in a smattering of languages, first scratch if you consider it a language and then learning c++ for Arduino in school last year. Since then I taught myself swift, the language taught in my school and then took a CS class. For this project I learned TypeScript & node.js and spent 10+ hours over 3 days on it.
My generator can generate a maze at any X/Y location on the paper and you are able to specify how many rows/columns you would like and a customizable set width/hight.
Here is a little GIF demo (the quality degraded when converting to a gif)
Here I generated a 10x10 maze that had a 2:1 hight to width ratio
Here is an example of the largest maze I was able to generate. Its 175x175 cells
In the future I plan on trying new maze algorithms such as the ones I found on this repository.
After I got everything working I tried switching out the random number generator for different sequences the first one I tried was a basic function that incremented by 1 each time
Another was up and down that incremented 1-4 and 4-1