adventofcode 2022-12-22

@xnooga missing you in here, are you down in the compiler bowels?

๐Ÿ™ 1

I just have too much stuff going on at my day job lately - will prolly try to catch up before new year ๐Ÿ˜Ž

1

Day 22 - Solutions

Finally got around to this. I definitely was a PITA https://github.com/bhauman/advent-of-code-2022/blob/main/src/adv2022/day22/sol.clj

๐Ÿ‘๐Ÿป 1

@zelark nice, considering it! it's Blender for the 3D part, Figma for the texture

๐Ÿค๐Ÿป 1

It seems to me like you have โ€œjust: New corner plus old offsetโ€ but some times it is โ€œnew corner plus width (50) minus old offsetโ€ E.g. 47 -> 100+50-47=103

did you mean day22?

๐Ÿ‘ 1

https://github.com/callum-oakley/advent-of-code/blob/main/src/aoc/2022/22.clj well it's the first time I've made a physical model this year ๐Ÿ˜‚ I hard coded the joins between the faces for the cube, but I was quite pleased with the compactness of the representation (only 7 joins, which get expanded out to the full joins between all the tiles)

1

some people solved the problem in general by doing the folding in 3d... which I really didn't want to do (hence the hard coding), but I like this alternative! very nice: https://www.reddit.com/r/adventofcode/comments/zsct8w/comment/j184mn7/?utm_source=share&utm_medium=web2x&context=3

aoc finally took it's toll on me last night. I had to stop mid-part2 and sleep. Now I'm trying to squeeze in some prep while at work ...

https://gitlab.com/maximoburrito/advent2022/-/blob/main/src/day22/main.clj finally done, after getting bit by bit done during the day. By cube transitions are hardcoded for my input, so it doesn't work for the sample. I assume different people's inputs have different layouts too, so mine may be just for me... Who knows...

I cut it out ^_^

You had the same layout as me... Did everyone get this layout?

๐Ÿ˜ 1
โž• 1

A friend of mine said he had a different unfolding

now stuck in part 2. did a digital model, checked the edges one by one but something's wrong. think I'm giving up and celebrating this is the farthest I ever got

@felipecortezfi This one is tough, the next ones are much easier, just skip it and go on! You can go back to the cube later.

What software did you use to create the model?

stuck in part 1. did a little viz to check if the wrapping is wrong, but it seems fine

Oh, man, good luck! Especially with part 2.

1
๐Ÿ˜† 1

off by one error facepalm was considering my map had one less column than it actually did

There is also โ€œy becomes xโ€ in some transitions. If you can decipher my mapping - can compare it with yours (first link in this thread). Look at transitions where x and y switch places, and at the plus/minus signes

@misha 4->2 uses a reverse range to map 100-149 to 49->0 which I think does this, but I'll recheck

Day 22 - What if the map is like this

...     ...#  ...     ...#
...     .#..  ...     .#..
..#     #...  ..#     #...
...     ....  ...     ....
...#.......#  ...#.......#
........#...  ........#...
..#....#....  ..#....#....
..........#.  ..........#.
        ...#....
        .....#..
        .#......
        ......#.

Miฤทelis Vindavs 2022-12-23T09:34:50.898409Z

Is that a hypercube? ๐Ÿ˜