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

all 37 comments

sorted by: hot top controversial new old
[–] 8 points 11 months ago* (last edited 11 months ago) (5 children)

In 16-bit real mode assembly, as a hybrid DOS .COM program and BIOS-bootable disk image. With bonus palette animations! I had the hybrid thing going on before (see the repo), but this is the first time getting something animated.

Repo | day07.com (12 KB) | full video

video

  • source
  • hideshow 5 child comments
  • [–] [S] 2 points 11 months ago (4 children)

    That's awesome, is it just random paths?

  • source
  • parent
  • hideshow 4 child 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
  • [–] 6 points 11 months ago* (last edited 11 months ago) (4 children)

    If took more code to animate this than it did to solve the problem...

    Looks very nice for the test data:

    And...okay...for the live data:

  • source
  • hideshow 4 child comments
  • [–] 5 points 11 months ago (2 children)
  • [–] [S] 4 points 11 months ago* (last edited 11 months ago) (6 children)

    Day 7 - Colourised, single image.

  • source
  • hideshow 6 child comments
  • [–] [S] 1 point 11 months ago (2 children)
  • [–] 3 points 11 months ago* (last edited 11 months ago)

    Day 7 (zoom to full screen): https://lgbt.earth/i/web/post/903381501524320591

    I can probably improve this a lot, but I was afraid I'll be too lazy after getting this far, so posting as is. Still, lmk if you have any suggestions :)

  • source
  • [–] 3 points 10 months ago (1 child)

    The graph of Day 11, created with very little effort using the dot utility of graphviz. Because of a stupid parsing error I ended up with a cyclic graph, so this visualization helped in debugging.

  • source
  • hideshow 1 child comment
  • [–] [S] 3 points 11 months ago (2 children)
  • [–] [S] 3 points 11 months ago (1 child)

    Day 8: https://youtu.be/QiezRG4jiUM

    Getting pretty close to having written my own game renderer, only slower and worse :D

  • source
  • hideshow 1 child comment
  • [–] 3 points 11 months ago* (last edited 11 months ago) (3 children)

    Apparently this is wrong. Not sure what I'm missing here. correct, my code was borked I guess (maybe an overflow or something?).

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

    First time I've seen a visualisation before solve :D

    I took one look at pt2 and noped out, its a later problem I think...

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

    Correction, turns out doing it entirely in Excel was the answer for me. The points I found were correct, but the area calculation in my code was wrong.

    I had to visualize it before I could even attempt to solve it. Still did it mostly intuitively based on the visualization.

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

    I know I'm late, but I'd thought, I'd share some of my day 12 visualizations I wanted to see.

    Here's my shapes with symmetries:

    Here's some of the solutions found in a greedy manner:





    The visuals are terminal based, for simple cells I used two spaces with colored background and for solutions I also used braille symbols to better delineate distinctions between cells.

  • source
  • [–] 2 points 11 months ago

    Squeezing all spaces out of the grid (and plotting at right-angles to the other visualisation here) gives this evil shape, which will doubtless haunt my dreams tonight.

  • source
  • [–] 2 points 10 months ago* (1 child)

    I made a quick visualisation of my input for day 9 with matplotlib. Still haven't solved part 2 though.

  • source
  • hideshow 1 child comment