« first day (4161 days earlier)      last day (865 days later) » 

12:15 AM
Finally got around to doing Day 4. That was fun. I'm really happy my decision to completely overengineer my Part 1 solution meant that Part 2 took all of minute to code.
@MBraedley is slacking!
 
 
2 hours later…
1:57 AM
@Wipqozn Yeah, I'm working on today's I spent a little while trying to figure out if there was a more intelligent way of doing it than just tracking all the boards
 
 
1 hour later…
3:12 AM
My problem with Day 4 was not realizing they didn't count diagonals.
 
3:36 AM
@Batophobia Oof
That would make things a lot more difficult
I specifically checked the puzzle for that lol
My Day 4 solutions had some cool uses of numpy, imo
Here's my aoc2021 repo, if anyone's interested: github.com/SaintWacko/aoc2021
 
4:29 AM
@Batophobia lol
 
 
5 hours later…
9:26 AM
Day 5 completed
 
 
2 hours later…
11:31 AM
@Batophobia /r/adventofcode is filled with people that made the same mistake, so you're not alone!
 
 
3 hours later…
2:22 PM
Okay, who here is good at numpy?
I seem to be fundamentally misunderstanding something
 
2:32 PM
I think I've used numpy a few times, a few years ago, so sadly not I.
Actually maybe I used it last year I can't remember.
I really only use python now for advent of code and quick little scripts at works. Most of my daily usage is in C# now.
 
 
1 hour later…
3:37 PM
Okay day5 done.
I think last year or the year before there was a very, very similar puzzle.
 
4:01 PM
The number of times I've written similar code you think I'd be able to do it without making the same mistakes each time
 
Yes, finished day 5
Lost too much time to figuring out what I had messed up with numpy
My code would be way cleaner if I knew how to save a reference to an area of a numpy array
 
Does arr[x:y,z:w] work?
 
Oh wait, just figured it out
So that's how you slice an array
But by default if you assign to that, it doesn't modify the original object
So if I said area = arr[x:y,z:w] and then said area = area + 1
It wouldn't modify arr
You have to do area[:] = area + 1
...Okay, well that worked for part 1, but not part 2
Nevermind, forgot the [:] lol
 
 
7 hours later…
11:06 PM
@fredley hasn't done Advent of Code at all this year! What a loser!
 

« first day (4161 days earlier)      last day (865 days later) »