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

  • Mr. Satan@lemmy.zip
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    3 days 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.

  • Strlcpy@1@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    8
    ·
    edit-2
    1 month ago

    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

      • Strlcpy@1@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 month ago

        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

        • CameronDevOPM
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          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

          • Strlcpy@1@lemmy.sdf.org
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            1 month ago

            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.

            • CameronDevOPM
              link
              fedilink
              arrow-up
              1
              ·
              1 month ago

              Yeah, max of 256 paths, and if there were no holes in the splitter layout, it would be the full 256. Also why i had to limit the depth to 16 layers, more than that and the brute forcing gets a bit silly.

  • mykl@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    edit-2
    1 month ago

    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:

    • CameronDevOPM
      link
      fedilink
      arrow-up
      1
      ·
      1 month ago

      Thats cool! What are the colours meant to signify?

      • hadesM
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        Christmas, I guess :) (I just pick a random colour each time a roll is removed)