From 0957ac4c441b40bd9f500fe320de7e0e5390918b Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Wed, 2 Dec 2020 01:58:54 -0500 Subject: set Part1() and Part2() to protected --- Day3.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Day3.cs') diff --git a/Day3.cs b/Day3.cs index 12f10d4..03f7379 100644 --- a/Day3.cs +++ b/Day3.cs @@ -17,12 +17,12 @@ namespace aoc2019 public override int DayNumber => 3; - public override string Part1() + protected override string Part1() { return $"{intersections.Min(x => Math.Abs(x.Item1) + Math.Abs(x.Item2))}"; } - public override string Part2() + protected override string Part2() { // add 2 to count (0, 0) on both lines return $"{intersections.Min(x => wires[0][x] + wires[1][x]) + 2}"; -- cgit 1.4.1