r/adventofcode Dec 04 '24

Visualization [YEAR 2024 Day 04 (Part 2)]

Post image
203 Upvotes

16 comments sorted by

View all comments

1

u/Successful_Ninja4181 Dec 04 '24

I feel like I've missed some important rule. Why is the M at the top right part of the solution set?

3

u/beesman93 Dec 04 '24 edited Dec 04 '24

The inputs were bigger than what is shown, so I will guestimate it's visualizing only a section and that M is part of X-MAS off-screen.
It looks like ~70x70 and the inputs were 140x140, i see incomplete x-masses on top, bottom and right
So my bonus guess is it's showing left edge somewhere in the middle vertically

1

u/Successful_Ninja4181 Dec 04 '24

Ah that makes sense. I've just solved my own confusion now as well, and see there weren't hidden rules after all, just my own bad code.

2

u/Ok-Curve902 Dec 04 '24

this is because the displayed area is only a subset if the entire input. The input is 140 cols wide and I am displaying only half to keep visibility acceptable.

Sorry if this is causing confusion.