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
abarylko 2016-12-02T15:59:56.000011Z

@fellshard Same here... I did that for a bit...

fellshard 2016-12-02T16:57:48.000012Z

That's what I love about these puzzles; the part A with hidden part B tests how you decide to reuse, refactor, and remodel your solution when confronted with change. It really is superb practice.

mnespor 2016-12-02T19:21:52.000013Z

It really is. I had created a function that returns all the intermediate points in a line segment, but in retrospect I wish I'd done something like R8 L4 => R 1 1 1 1 1 1 1 1 L 1 1 1 1 instead

fellshard 2016-12-02T19:36:36.000014Z

Basically what I ended up doing, translated relative rotations and steps into static directions, e.g. :east :east :east :north :north :west

fellshard 2016-12-02T19:37:06.000015Z

from there it's trivial to generate a sequence of points visited