Live data from Hacker News

Show HN: Random Roads

random-roads--edwardcunningh2.repl.co

31–40 of 52 posts

Re: Show HN: Random Roads

#31
post #25

This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/

That is absolutely stunning. My favourite part of flying!

You might like Gregory Dicum’s book “Window Seat: Reading the Landscape from the Air”. https://io9.gizmodo.com/how-to-read-the-landscape-from-your-...

Re: Show HN: Random Roads

#33
Wonderful little thing :) I was instantly reminded of substrate, but the way this ends, each "run" looks like a minimalistic artwork.

This would be great on A4 sized e-ink paper, mounted in a nice frame and refreshing a few times a day.

Re: Show HN: Random Roads

#35

This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/

Ach! this reminds me of an artist who worked mostly with Processing ( https://processing.org ) and either did this or something very like it (and a bunch of other stuff.)

Re: Show HN: Random Roads

#36
post #2

Wouldn’t call these roads really. Roads without context are just paths. You need the roads to provide useful destinations as efficiently as possible. Many of these paths lead nowhere. In fact, all of them go nowhere, I don’t even think there’s loops.

you must be the life of the parties

Re: Show HN: Random Roads

#38

This reminds me of the beautiful "substrate" screen saver: http://www.complexification.net/gallery/machines/substrate/

I just got it -- thanks for sharing this! Could watch it for hours...

If anyone else wants to download the screensaver, you can get it for linux/osx/ios/android: https://www.jwz.org/xscreensaver/ . Most in the collection aren't great (unless you're in an early-2000s aesthetic mood), but I just installed the substrate one :)

Re: Show HN: Random Roads

#39
post #14
post #5

Hey, 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…

Kind of reminds me of the algorithm to create a maze: https://medium.com/swlh/how-to-create-a-maze-with-javascript...
Post reply on HN