From: "Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org>
Subject: Re: Advent of code day 12
Date: Sun, 13 Dec 2020 10:30:40 +0100 [thread overview]
Message-ID: <rr4n01$vk5$1@dont-email.me> (raw)
In-Reply-To: <3739d281-8131-4096-b51d-11ac18647aecn@googlegroups.com>
On 12/13/20 2:33 AM, John Perry wrote:
> On Saturday, December 12, 2020 at 2:28:30 PM UTC-6, Stephen Leake wrote:
>> simplest puzzle yet; part 2 completed without any edits!
>> --
>> -- Stephe
>
> I mostly agree, but I had trouble with today's puzzle. It's a recurring problem of mine: if the input is not specified completely, I have trouble figuring out what it is, even when I study it, so I often get subtle bugs. And there's a LOT of input. In my input, a turn of 270 degrees doesn't show up until line 85, so I didn't see it even after scanning the file (which I did because I wanted to make sure it had integer-only positions and the turns were multiples of 90). Once I figured that out, it was quite easy.
I had to look up the equations for rotation around the origin, but other than
that it was simple.
I used grep to inspect the input to verify its characteristics.
--
Jeff Carter
"IMHO, Interfaces are worthless."
Randy Brukardt
117
prev parent reply other threads:[~2020-12-13 9:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-12 20:28 Advent of code day 12 Stephen Leake
2020-12-13 1:33 ` John Perry
2020-12-13 6:40 ` Maxim Reznik
2020-12-13 11:36 ` Gautier Write-Only Address
2020-12-13 15:41 ` John Perry
2020-12-13 18:35 ` Maxim Reznik
2020-12-13 22:29 ` John Perry
2020-12-14 9:15 ` Maxim Reznik
2020-12-14 0:01 ` Stephen Leake
2020-12-13 9:14 ` Gautier Write-Only Address
2020-12-13 15:32 ` John Perry
2020-12-13 9:30 ` Jeffrey R. Carter [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox