
I feel like there was at least one other one like this in previous years, but I don’t remember which years.

There are a few in previous years. A few favorites include the intcode brick breaker and text adventure, but there were also a few that were more “read this number”


<https://github.com/lojic/LearningRacket/blob/master/advent-of-code–2021/solutions/day13/day13.rkt|Day 13>

@massung that sounds very odd re: the fold not being in the middle - doesn’t sound right

It got me wondering if my data was bad. The end result wasn’t 100% valid output either, but close enough that I could see the letters

It need not be in the middle, but there shouldn’t be any dots on the fold. (I’m not sure why you couldn’t fold, say, the latter third onto the middle third.

as in - the code I’ve seen others post w/ their text output was quite clear

But I didn’t look to see if mine were all in the middle. It wasn’t specified to be, was it?

I don’t think it was, but all my x-folds were 100% in the middle and all the y’s except 1, which was off the middle by 3

It wasn’t specified, but I kind of assumed it started as a grid with odd dimensions, so we remove the middle row/col, giving an even number, and divide by two, giving an odd number, rinse & repeat.

huh. If youre input is available, I’ll run my solution and see how clear the result is

yeah, likewise - super curious !!

w/ a sparse matrix, where the fold was didn’t matter and everything looks pretty ok

with bit vectors it was trickier :slightly_smiling_face:

Seems readable to me (use a wide view, I guess):
███ ██ █ █ ████ ███ ████ ██ ██
█ █ █ █ █ █ █ █ █ █ █ █ █
█ █ █ ████ █ ███ ███ █ █
███ █ ██ █ █ █ █ █ █ █ █
█ █ █ █ █ █ █ █ █ █ █ █ █
█ ███ █ █ ████ ███ █ ██ ██
The line-height makes it a little ugly, though

I get: ### ## # # #### ### #### ## ##
# # # # # # # # # # # # #
# # # #### # ### ### # #
### # ## # # # # # # # #
# # # # # # # # # # # # #
# ### # # #### ### # ## ##

yeah, that’s what I got, too w/ the sparse matrix. but one of the y folds is off

so good that all the code handles it :slightly_smiling_face:

off-center anyway

Much nicer

i probably had a bug in my bit vector stuff

(which is when i put in the answer)

I’m kind of surprised mine worked now, when I look at the fold instructions!

I actually think that making the puzzles (more specifically, the procedural input for them) is a more interesting problem than solving them :slightly_smiling_face:

Oh, never mind, it’s fine as long as the fold is at least halfway down/across - I assume they all are.

Day 14 spoilers

Today was hard! Mine:

This was a very good one. Took a lot of thinking. I’m gonna wake up tomorrow and clean the code up a bit before posting, but very interested in seeing how everyone else solved it. :slightly_smiling_face:

er… “tomorrow”