popa.bogdanp
2021-12-13 08:55:09

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


ben.knoble
2021-12-13 16:50:11

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”



badkins
2021-12-13 19:25:16

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


badkins
2021-12-13 19:36:39

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


massung
2021-12-13 19:37:30

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


ben.knoble
2021-12-13 19:37:40

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.


massung
2021-12-13 19:37:55

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


ben.knoble
2021-12-13 19:38:03

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


massung
2021-12-13 19:38:42

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


badkins
2021-12-13 19:39:05

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.


ben.knoble
2021-12-13 19:39:18

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


badkins
2021-12-13 19:39:29

yeah, likewise - super curious !!


massung
2021-12-13 19:39:41

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


massung
2021-12-13 19:39:50

with bit vectors it was trickier :slightly_smiling_face:


ben.knoble
2021-12-13 19:40:22

Seems readable to me (use a wide view, I guess):

███ ██ █ █ ████ ███ ████ ██ ██ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ ████ █ ███ ███ █ █ ███ █ ██ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ █ ███ █ █ ████ ███ █ ██ ██ The line-height makes it a little ugly, though


badkins
2021-12-13 19:40:49

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


massung
2021-12-13 19:41:13

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


massung
2021-12-13 19:41:21

so good that all the code handles it :slightly_smiling_face:


massung
2021-12-13 19:41:28

off-center anyway


ben.knoble
2021-12-13 19:41:46

Much nicer


massung
2021-12-13 19:41:55

i probably had a bug in my bit vector stuff


massung
2021-12-13 19:42:07

(which is when i put in the answer)


badkins
2021-12-13 19:42:45

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


massung
2021-12-13 19:43:23

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:


badkins
2021-12-13 19:43:43

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


popa.bogdanp
2021-12-14 06:47:21

Day 14 spoilers


popa.bogdanp
2021-12-14 06:47:50

massung
2021-12-14 07:24:08

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:


massung
2021-12-14 07:25:03

er… “tomorrow”