comp.lang.ada
 help / color / mirror / Atom feed
From: Gautier Write-Only Address <gautier_niouzes@hotmail.com>
Subject: Re: Advent of code day 12
Date: Sun, 13 Dec 2020 01:14:29 -0800 (PST)	[thread overview]
Message-ID: <04c03d8f-4120-4b94-843a-319aaf1ed9e9n@googlegroups.com> (raw)
In-Reply-To: <3739d281-8131-4096-b51d-11ac18647aecn@googlegroups.com>

> 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. 

If you include all possible angles you don't encounter that issue :-)

https://github.com/zertovitch/hac/blob/master/exm/aoc/2020/aoc_2020_12.adb

  parent reply	other threads:[~2020-12-13  9:14 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 [this message]
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