Fork me on GitHub
#adventofcode
<
2021-12-30
>
zxspectrr14:12:44

hi, i'm a bit late but i'm stuck on day 19, i don't understand why there are up to 24 orientations. four combinations on three axis suggests 12 combinations, rather than 24

tschady15:12:16

x 2 for direction facing on the axis

zxspectrr15:12:22

i wrote some code to take a pos and rotate it 4 times per axis which got me to 12

zxspectrr15:12:52

eg rotate-x + rotate-y + rotate-z

zxspectrr15:12:48

i guess it only got me half way. I think i'll move on to 20 and come back to 19 since it seems very complex

zxspectrr15:12:04

it sounds mad but i just took off one of my shoes and moved it around in the air, you're right i'm missing another 12 😄

genmeblog16:12:10

think about watching a cube. There are 6 sides you can look at. And each side can be seen from four different rotations.

zxspectrr16:12:25

that helps, ty

lread23:12:32

This one drove me a bit coocoo! I actually took two wooden blocks, one to imagine the sensor and one to image some point in space. I then rotated the sensor and observed how that affected the sensor’s perception of x y and z. I also used quil to visualize the cuboids.

lread23:12:12

I’m still 5 stars away from the finish line! I’m finding that the puzzles can be a bit… addictive. simple_smile The nice thing for now is that if I get stumped by one I can move to another.

zxspectrr23:12:30

im slowly getting through them

zxspectrr23:12:42

it's been quite a lot of work for me as i'm a novice in clojure

zxspectrr23:12:09

wasted a lot of time on day 20 by incorrectly copying the test algorithm 😐

lread23:12:36

Yeah, I made some bone-headed moves like that too.

zxspectrr23:12:09

thinking in a non-imperative way is hard for me due to years of java

lread23:12:49

I’d say I’m maybe (?) approaching intermediate competency in Clojure. Some of these puzzles hurt my brain because it has had little to no practice in some areas. Anything 3d was tough for me. And the maze-y ones too. And I’m still not clear on splitting universes. simple_smile

zxspectrr23:12:36

i struggle a bit with some of the algorithms more than the language

zxspectrr00:12:08

but when i hit a corner i think i can probably get myself unstuck a bit quicker with experience in working with the repl

lread00:12:09

Yup, me too. Good exercise for the old noggin!

zxspectrr00:12:51

for example on day 20, if i'd just thought to dump the output to file so i could look at it i'dhave found the gotcha about the alternating void

lread00:12:56

Yeah the repl is great for testing ideas quickly.

lread00:12:52

Oh yeah, the trench map, that one was a clever puzzle, I thought. It wasn’t an instant win for me, but I got there!

lread00:12:48

I’m trying to avoid studying solutions of others until I’m all done. But am looking forward to learning from approaches of others to solving these puzzles.

zxspectrr00:12:35

i read through other solutions after i finish each one

zxspectrr00:12:41

helps with the next day

lread00:12:24

Yeah, maybe not a bad idea there!