From 67a5560dd8947576fcc9b464b439e80d866eaee2 Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 17 Dec 2021 12:03:14 -0600 Subject: [PATCH] Use the convenience method I added Why did I add it and then not use it? We may never know. --- src/17.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/17.cs b/src/17.cs index 5e7b8f6..2ccbce6 100644 --- a/src/17.cs +++ b/src/17.cs @@ -148,7 +148,7 @@ internal class Day17 : Day while (true) { guesspt = Step(guesspt, ref testVel); - if (!bounds.IsHigh(guesspt) && !bounds.IsLow(guesspt)) + if (bounds.YInRange(guesspt)) { if (guess > maxSuccessYVel) {