Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-14 Thread Raul Miller
On Wed, Dec 14, 2022 at 2:26 AM Jaume wrote: > Because somewhere in there something broke and on the phone I have the > wrong answer for part 1. Yes... generally it's easier to debug if you have a much smaller implementation. It's also a *lot* easier if you write your code so that you can test a

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-14 Thread 'Mike Day' via Programming
Well done! Day 13 has been unlucky for me; still floundering around, not even managing to solve the example. Anyway, I also always try to solve the example first, if I can. One, perhaps two, of the earlier problems did have a feature that didn't appear in the example, though. The knotte

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-14 Thread Jaume
Missatge de Raul Miller del dia dc., 14 de des. 2022 a les 18:33: > On Wed, Dec 14, 2022 at 2:26 AM Jaume wrote: > > Because somewhere in there something broke and on the phone I have the > > wrong answer for part 1. > > Yes... generally it's easier to debug if you have a much smaller > implemen

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-14 Thread Raul Miller
On Wed, Dec 14, 2022 at 3:49 PM Jaume wrote: > The first days I tried, now I have less time and the problems are harder. That does happen. I expect aoc day 24 to take me a few days to solve (unless it happens to be a problem I somehow have already put a lot of thought into). > I have to say th

Re: [Jprogramming] Questions on day 13 of Advent of Code 2022

2022-12-14 Thread Raul Miller
I should add: On Wed, Dec 14, 2022 at 4:19 PM I wrote: ... > Here, OP was a gerund such that OP@.0 represented what monkey 0 would > do to the "worry levels", OP@.1 represented monkey 1, and so on. Note that a better representation here would interpret each monkey's operation as a polynomial rath