Fork me on GitHub
#adventofcode
<
2022-12-22
>
bhauman03:12:02

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

🙏 1
nooga10:12:29

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

metal 1
misha14:12:04

Day 22 - Solutions

nooga14:12:29

did you mean day22?

👍 1
Callum Oakley14:12:29

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)

bellissimo 1
Callum Oakley14:12:28

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&amp;utm_medium=web2x&amp;context=3

norman17:12:01

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 ...

norman20:12:11

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...

alekszelark21:12:32

I cut it out ^_^

norman21:12:44

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

😁 1
1
alekszelark21:12:37

A friend of mine said he had a different unfolding

Felipe18:12:47

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

alekszelark18:12:41

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

😆 1
crying-laughing-joy-blood 1
Felipe18:12:57

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

Felipe18:12:45

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

alekszelark21:12:34

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

alekszelark21:12:57

What software did you use to create the model?

Felipe11:12:46

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

1
misha16:12:45

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

misha16:12:23

Not 47->147

Felipe17:12:30

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

misha13:12:56

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

Apple21:12:37

Day 22 - What if the map is like this

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

Miķelis Vindavs09:12:50

Is that a hypercube? 😁