comp.lang.ada
 help / color / mirror / Atom feed
From: John Perry <john.perry@usm.edu>
Subject: Re: Advent of code day 12
Date: Sat, 12 Dec 2020 17:33:45 -0800 (PST)	[thread overview]
Message-ID: <3739d281-8131-4096-b51d-11ac18647aecn@googlegroups.com> (raw)
In-Reply-To: <867dpmpy50.fsf@stephe-leake.org>

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 guess the moral of the story is that I need to think more carefully about what come through the input, as well as rely more on validating that the input meets my expectations.

  reply	other threads:[~2020-12-13  1:33 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 [this message]
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
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox