adventofcode

Happy Advent 2020! Please put answers in the pinned threads or create one if it does not exist yet. | https://github.com/adventofcode-clojurians/adventofcode-clojurians | Join the private leaderboard with code 217019-4a55b8eb
2018-12-23T02:36:23.057800Z

@misha yeah one of the important things is to have the set of what valids moves really are. Thats why the 3 dim solution really shines. It's easy to create a set of all the valid points of [x y tool] (including valid tool switches) and always filter you possible moves by them,

fellshard 2018-12-23T04:45:55.059800Z

Ugh, finally finished day 15. That round-counting thing is a pain to weave in, I just ended up ignoring the edge case (last unit's turn finishes the match), and that worked fine for my input.

fellshard 2018-12-23T04:57:34.062400Z

And actually used earmuffs for the time to weave in the elf attack values! It's kinda gross, but I don't need to extend or maintain this later, so...

2018-12-23T08:41:17.064400Z

I got a super late start today. Part 1 was trival. Part 2… seems like it’s too late for thatt

Average-user 2018-12-23T16:26:18.069600Z

For day 23 part-2. I came up with something: In theory you can only check points that are in the surface of at least one sphere. The problem is that given a point (p) and a radius (r) the points that are in the surface of that sphere are in the order of r*r. and radius are quite large in the input

gklijs 2018-12-23T16:52:50.071200Z

There is a theory the points with the most spheres coincide with one of the corners. But my data don't seem to support that..

Average-user 2018-12-23T17:01:59.072200Z

not necessarily the corner, but with the surface of one. But yeah, I read some theories about corners being enough, but I don't think is correct

Average-user 2018-12-23T17:07:21.072600Z

With my input the corners approach doesn't seem to work

gklijs 2018-12-23T17:16:39.073Z

With mine neither, but the surface is huge 😞

Average-user 2018-12-23T17:16:52.073300Z

yes is too much. Maybe the edges?

Average-user 2018-12-23T17:17:03.073500Z

There are still huge though

Average-user 2018-12-23T17:19:55.074Z

Im gonna try to find the best corner, and then walk to origin