Show HN: Random Roads
21–30 of 52 posts
Re: Show HN: Random Roads
#22https://github.com/mxgmn/WaveFunctionCollapse
What algorithm is this using? Got a GitHub link?
Re: Show HN: Random Roads
#23Hey, good work! What algorithm did you use?
Thanks! You can see the code here: https://repl.it/@EdwardCunningh2/Random-Roads It's not especially clever: 1. I define a set of possible moves (eg. straight ahead, left turn, junction, etc). One possible move is a dead-end, which looks a bit like a house in my interpretation. 2. Each move is assigned a relative weight (eg. continuing straight ahead 10x more likely than turning left). 3. Each iteration, for each of…
Re: Show HN: Random Roads
#24Re: Show HN: Random Roads
#25This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/
Re: Show HN: Random Roads
#26Reminds me of the Wave Function Collapse algorithm, although doesn't look to be that. https://github.com/mxgmn/WaveFunctionCollapse What algorithm is this using? Got a GitHub link?
Re: Show HN: Random Roads
#27Re: Show HN: Random Roads
#28Earlier quoted context omitted.
Thanks! You can see the code here: https://repl.it/@EdwardCunningh2/Random-Roads It's not especially clever: 1. I define a set of possible moves (eg. straight ahead, left turn, junction, etc). One possible move is a dead-end, which looks a bit like a house in my interpretation. 2. Each move is assigned a relative weight (eg. continuing straight ahead 10x more likely than turning left). 3. Each iteration, for each of…
Nice! My first page load I got a single line that stopped at the first point. Is that just able to happen?
I considered adding logic to prevent this, but have decided to embrace it as a feature rather than a bug.
I quite like some of the small-ish maps, like this: https://random-roads--edwardcunningh2.repl.co/#1592759118928
Re: Show HN: Random Roads
#29Some people see this and say 'how did you do it?'. Others say to themselves, 'how would I do it?'. I'm in the second category...