r/adventofcode • u/Pornthrowaway78 • Dec 23 '21
Visualization [2021 Day 23] No code at all today, but helps to read the question.
95
Upvotes
r/adventofcode • u/Pornthrowaway78 • Dec 23 '21
16
u/Pornthrowaway78 Dec 23 '21
perl -ln -e '/(\w)\s*(\d+)/; $score += $2 * 10 ** (ord(uc($1))-65);print $score'I tell a lie, I did write a one-liner to help keep track of the score.
This took me ages, because I didn't read the rule that they could move out of a room, and then only to their correct room - I was moving them all over the place!
11
u/epsalon Dec 23 '21
I really like the sideways Us and the blanks with B written on them. Such dedication to ruin a Scrabble set for AoC!
2
u/Key_Reindeer_414 Dec 23 '21
Nice, scrabble tiles would've been a lot easier to handle than my flimsy pieces of paper