The previous thread has fallen off the front page, feel free to use this for discussions on current problems

Rules: no spoilers, use the handy dandy spoiler preset to mark discussions as spoilers

  • swlabr@awful.systems
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 days ago

    Day 15

    p1

    Pretty easy. Just check in the direction you want to push if you have space.

    p2 DNF

    Currently debugging with test cases from the subreddit. I’ve also created a shitty visualiser for it, stay tuned!

    • swlabr@awful.systems
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 days ago
      P2 complete

      The issue with my code was that I didn’t make a push atomic, i.e. I would move boxes even if their ancestors couldn’t be pushed. Making a list of candidate boxes to push solved this.

      Here’s the visualisation of the complete solution, though it doesn’t show the last 100 frames or so. Please forgive me

      https://imgur.com/a/RL50MaC

    • zogwarg@awful.systems
      link
      fedilink
      English
      arrow-up
      2
      ·
      7 days ago
      Re: p2

      Definitely a bit tedious, I had to “play” a whole session to spot bugs that I had. It took me far longer than average. I had buggy dissepearing boxes because of update order, I would reccomend a basic test case of pushing a line/pyramid of boxes in every direction.