{"by":"berkes","descendants":20,"id":43000764,"kids":[43046735,43046975,43002763,43048580,43051443,43053984,43053151,43064047],"score":100,"text":"An experiment with maze generation, started off in Rust, then ported to js to make it a web-app.<p>The algorithm, code and setup aims to make it simple - and as always, simple turned out hard ;).<p>The &quot;about&quot; dialog has some more information on choices made, tech used, inspiration and backgrounds.<p>Most important, for a tech crowd, I guess is:<p>- it uses p5.js - I generally prefer just vanilla js and canvas for my generative art projects, but here I wanted to focus on the outcome, not the tooling.<p>- uses seedrandom with the name of you and your valentine as seed. So a unique, but reproducible maze for a pair of names. Randomness controls the colors, layout and maze generation.<p>- Yes, the code is a mess still. Refactoring breaks my creative process, so I tend to postpone it (aka forget about it...)<p>- It uses some browser apis (share, copy, download) that don&#x27;t work for all browsers in all setups (e.g. copy doesn&#x27;t work on my firefox android, no idea why).<p>The source code can be found here: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;berkes&#x2F;art&#x2F;tree&#x2F;main&#x2F;lost-in-love\">https:&#x2F;&#x2F;github.com&#x2F;berkes&#x2F;art&#x2F;tree&#x2F;main&#x2F;lost-in-love</a>","time":1739198155,"title":"Show HN: A unique generated maze to share with your Valentine","type":"story","url":"https://love.berk.es/"}