jmpeax 2 days ago

The description of the algorithm is frustratingly confusing.

"Now pick another random black dot to start from and color it white too. From this black dot" from which black dot, the white one?

"single step in a random direction, coloring the new dot white and drawing a line between the two dots". How big of a step is we need to draw a line? Ok, so where not talking about pixels, and where drawing black and white dots on a background of... let's imagine grey?

"backtrack along your path until you’re back at the dot that you were trying to color white" does this algorithm ever terminate in any tractible time?

  • realaleris149 2 days ago

    I always had problems understanding algorithms from such descriptions. Even from pseudocode I find it difficult to understand. What I usually do is search for an implementation, even in a language I am not familiar with is still better. When you have code you can run it, test it, debug it - not so much with descriptions and pseudocode.

drob518 2 days ago

This page has similar visualizations and explanations of multiple (wildly different, in some cases) maze generation algorithms. It’s hypnotic to watch them run.

https://professor-l.github.io/mazes/

bigjobby 2 days ago

This is what I come to HN for. Bravo

  • leakycap 2 days ago

    Was it the example or the text for you?