From 501ef0a5c7236491c67d9a78acca5edd1bf5ebd3 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Thu, 5 Dec 2019 01:44:55 -0500 Subject: make some stuff non-static --- Day5.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Day5.cs') diff --git a/Day5.cs b/Day5.cs index 3bbaa4c..ca9a08f 100644 --- a/Day5.cs +++ b/Day5.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections.Generic; +using System.Collections.Generic; using System.IO; using System.Linq; @@ -9,11 +8,11 @@ namespace aoc2019 { public override int DayNumber => 5; - private static readonly IEnumerable tape = + private readonly IEnumerable tape = File.ReadLines("input/day5.in").First().Split(',').Select(int.Parse); - private static int output; - public static void RunIntCode(List v, int input) + private int output; + public void RunIntCode(List v, int input) { var i = 0; while (i < v.Count && v[i] != 99) -- cgit 1.4.1