Fork me on GitHub
#adventofcode
<
2020-12-12
>
fingertoe03:12:44

Did anyone have flashbacks of the “Ants demo”?

markw03:12:29

more like game of life, these automata problems show up every year

Stuart03:12:22

oh balls, i misread part 2, and have spent faaaar too long calculating how many empty seats i can see in any of the 8 directions until I hit an occupied seat.

pez08:12:10

Sounds like it could pretty easily be transformed into the right solution, though.

Stuart03:12:51

I have no idea why

markw03:12:57

I did the same thing the first time.. actually I counted all empty seats in any direction

markw03:12:07

well any of the 8

Stuart03:12:29

yeah, i've done the same. Go off on all the 8 directions and count empty seats until i hit an occupied one

Stuart03:12:52

Well, its 3:40 am. Fix it tomorow I guess. Dammit

markw03:12:01

My reading comprehension falls off a cliff at 11 P.M. CST apparently

markw03:12:17

3:40? there goes my excuse

alekszelark05:12:09

Morning folks ^_^

Vincent Cantin06:12:06

troll mode: my code runs under 1 second ! 😉

gotta_go_fast 2
😆 2
Vincent Cantin06:12:48

I solved the puzzle using clojure.core.protocols/nav (kidding)

misha11:12:36

I wish all the discussion did not happen inside a single overpopulated thread

💯 3
thinking-face 1
pez12:12:16

Step 2 movements done. Now to rotate. Big hmmm! Feels like it is my brain rotating and not the waypoint…

🙈 1
upside_down_parrot 3
parrot 2
😂 1
plexus15:12:49

Feels like they are saving the easier ones for the weekends

👍 1
pez15:12:31

This Manhattan Distance things brings back Robocode memories for me.

plexus15:12:40

I recently worked on a turtle-like API for minecraft, so it definitely reminded me of that 🙂 https://github.com/plexus/witchcraft/blob/main/src/lambdaisland/witchcraft/cursor.clj

👍 1
pez15:12:37

I don’t know about your weekends theory, @plexus. Today’s was tough for me. Made me realize I am maybe about to drop out soon. Could not afford to spend this amount of time during work days.

Stuart17:12:54

Annoying, my day 11 part 2 works with the test data, finishes with the real data but gives wrong answer. Completely lost to what hte problem is. Printing the grid and inspecting it is out the question.

pez17:12:58

The example data lacks left turns, so maybe start looking there?

pez18:12:36

If someone can add some left turns to the example data and provide it with the correct answer, then you could validate with that. I can't provide this right now. Busy with bbq. 😎

plexus18:12:50

@qmstuart here's some test-input that should hit all discrete cases, plus an overview of what the ship's position and waypoint should be after each step: https://github.com/lambdaisland/aoc_2020/blob/main/src/lambdaisland/aoc_2020/puzzle12.clj#L111-L144

plexus18:12:50

I had the same thing happen to me first as well, I had an error in my implementation for "W", and the demo input does not contain any west instructions, so the demo input ran fine, but the result on real input was wrong

❤️ 2
plexus18:12:48

printing out the position and waypoint after each step allowed me to manually go through the steps and mentally compute what the expected output should be, then I noticed that my west was actually going east

❤️ 1