public List <Coord> CalculateCollisions(Day3 input) { var collisionList = new List <Coord>(); var inputCoords = input.GetAllCoveredCoords(); foreach (var coord in inputCoords) { if (IsCollidingWith(coord)) { collisionList.Add(coord); } } return(collisionList); }
static void Main(string[] args) { //Day1 day1 = new Day1(); //day1.Day1Task(); Day2 day2 = new Day2(); //day2.Day2Task1(); //day2.Day2Task2(); Day3 day3 = new Day3(); //day3.Day3Task1(); //day3.Day3Task2(); Day4 day4 = new Day4(); //day4.Day4Task1(); Day4Sol day4sol = new Day4Sol(); //day4sol.Main(); Day5 day5 = new Day5(); day5.Day5Task2(); }