adventofcode

zxspectrr 2021-12-30T14:58:44.311700Z

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

tschady 2021-12-30T15:10:16.311900Z

x 2 for direction facing on the axis

zxspectrr 2021-12-30T15:20:22.312100Z

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

zxspectrr 2021-12-30T15:20:52.312300Z

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

zxspectrr 2021-12-30T15:21:48.312600Z

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

zxspectrr 2021-12-30T15:24:04.312900Z

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 😄

genmeblog 2021-12-30T16:04:10.313100Z

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

zxspectrr 2021-12-30T16:16:25.313300Z

that helps, ty

lread 2021-12-30T23:29:32.313500Z

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.

lread 2021-12-30T23:54:12.313700Z

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.

zxspectrr 2021-12-30T23:54:30.313900Z

im slowly getting through them

zxspectrr 2021-12-30T23:54:42.314100Z

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

zxspectrr 2021-12-30T23:55:09.314300Z

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

lread 2021-12-30T23:55:36.314500Z

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

zxspectrr 2021-12-30T23:56:09.314700Z

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

lread 2021-12-30T23:58:49.314900Z

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

zxspectrr 2021-12-30T23:59:36.315100Z

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

zxspectrr 2021-12-31T00:00:08.315300Z

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

lread 2021-12-31T00:00:09.315500Z

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

zxspectrr 2021-12-31T00:00:51.315700Z

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

lread 2021-12-31T00:00:56.315900Z

Yeah the repl is great for testing ideas quickly.

lread 2021-12-31T00:02:52.316100Z

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!

zxspectrr 2021-12-31T00:05:08.316300Z

🙂

lread 2021-12-31T00:06:48.316500Z

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.

zxspectrr 2021-12-31T00:25:35.316700Z

i read through other solutions after i finish each one

zxspectrr 2021-12-31T00:25:41.316900Z

helps with the next day

lread 2021-12-31T00:34:24.317100Z

Yeah, maybe not a bad idea there!