Everyone loves a good visualisation, share any visualisations that you have created here.

you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 11 months ago (3 children)

Well it uses the input of course but I found that if you make it truly random, the lines mostly go down in a straight line, all bunching up in the middle, which isn't very pleasing. So now the beams have a "current direction" which has a 25% of flipping at every splitter

  • source
  • parent
  • hideshow 3 child comments
  • [–] [S] 1 point 11 months ago (2 children)

    I used a u8, one bit per level to do mine, but because not all bits correspond to a splitter, it ends up duplicating a lot of the paths. Which is why I made the lowest bit at the top, so it flip-flops a lot, giving the appearance of multiple different paths :D

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 11 months ago* (last edited 11 months ago) (1 child)

    If I understand correctly, your visualization shows up to to 256 unique paths then?

    In this one, every time the beam passes a splitter, the other side is put on a queue, so eventually all possible paths are traced, breadth first. Initially I worked through the options recursively, but that depth-first filling out was boring to look at.

  • source
  • parent
  • hideshow 1 child comment